A simple package to generate random numbers, characters or both.
Project description
randomgen
A simple Python package to generate random numbers, characters or both of a given length.
Install
pip install randomgen
Usage
from randomgen import generate_random
print(generate_random(8)) # both by default
print(generate_random(5, 'number'))
print(generate_random(10, 'char'))
Test Locally
In terminal:
pip install -e .
Upload to PyPI (if you want later)
pip install twine
python setup.py sdist bdist_wheel
twine upload dist/*
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
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
File details
Details for the file am_random_generator-0.1.0.tar.gz.
File metadata
- Download URL: am_random_generator-0.1.0.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91fe1fc958abdfe71107fa13a720de558f0754bd0b4374aeb4d1ee3293e42d36
|
|
| MD5 |
01cd5bc69646cfbea50ea22c9f1f5dc5
|
|
| BLAKE2b-256 |
1b0d1a4635aff0567c68b3202b0e785aaaa9c2f848b6a742e6b553a4d9cb10f3
|
File details
Details for the file am_random_generator-0.1.0-py3-none-any.whl.
File metadata
- Download URL: am_random_generator-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
347a8aaf001ee98cde738327803e3cc65b5f2ab4c6a7c9e86f98d92f89c7c09a
|
|
| MD5 |
2c721c9212367f5cd25af7b4bed32f8b
|
|
| BLAKE2b-256 |
1b64fa2dae27e6ac0c91a4a45660efeec155ee95da79a42bd779f1a9a8ecf90f
|