Metadata-Version: 2.2
Name: ufns
Version: 0.0.1
Summary: Utility Functions
Author-email: Liam Leonard <liamleonard@outlook.ie>
Project-URL: Homepage, https://github.com/liam-leonard/ufns
Project-URL: Issues, https://github.com/liam-leonard/ufns/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENCE

# ufns

Utility functions for Python

linspace(a, b, l, r)

- generates a list of length l of evenly spaced values between a and b
- rounds values to r decimal places, can be left blank if desired
- leaving l blank will generate a values differing by 1 if the difference
  between a and b is whole, or else will set the length to 100

gen(l, a, b)

- generates a list of length l of random integers between a and b

gen(l, list, allowDuplicates)

- generates a list of length l of random values picked from an iterable (in this case the iterable is list)
- iterable should not be passed as a string
- setting allowDuplicates to False will populate the list with unique values,
  leaving blank or setting to True will add duplicate values to the list

lininc(a, b, i)

- generates a list of values from a to b, in increments of i

ordmag(n)

- returns the power that 10 is raised to when n is expressed in scientific notation
