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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
randgen-1.0.1-py3-none-any.whl
(27.3 kB
view details)
File details
Details for the file randgen-1.0.1.tar.gz.
File metadata
- Download URL: randgen-1.0.1.tar.gz
- Upload date:
- Size: 39.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88049cff80bce33607c88141e4297e111b5d20d3ee9a5f4126aab6595b5d1598
|
|
| MD5 |
cd2b7a6224de4cc34cbe0da0b15aacf8
|
|
| BLAKE2b-256 |
211a159afd90700ca5a7ff9b1da524922d4a5c1f1c9500ba24ff93af69f21bb2
|
File details
Details for the file randgen-1.0.1-py3-none-any.whl.
File metadata
- Download URL: randgen-1.0.1-py3-none-any.whl
- Upload date:
- Size: 27.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e61538e56f4f9c6b3b8b4732f90c994d435b013d26f6cd97b278f5360dded941
|
|
| MD5 |
a7c31ee788fca0123f531c58f9556972
|
|
| BLAKE2b-256 |
50f56aa30d70edc150a73b7585736d761db8c044305a11048bbd7b1004eb8028
|