A Random Generator for Multiple Scenarios
Project description
py-random-generator
A Random Generator for Multiple Scenarios
Installation
python -m pip install randgen
Usage
gen_random_int(a: int, b: int) -> int
: This function creates a random integer between a and bgen_random_bytes(nbytes: int = None) -> bytes
: This function creates a random sequence of bytesgen_random_urlsafe_token(nbytes: int = None) -> str
: This function creates a random string that is safe to use in URLsgen_random_single_digit() -> int
: This function creates a random single digit between 0 and 9gen_random_true_or_false() -> bool
: This function creates a random boolean value
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
randgen-1.0.1.tar.gz
(39.0 kB
view hashes)
Built Distribution
randgen-1.0.1-py3-none-any.whl
(27.3 kB
view hashes)