No project description provided
Project description
Randomade v1.3
==============
Randomade is built using the random library, which comes preinstalled with Python.
It is specifically built for getting random values. Currently, you can get random letters and numbers, both with custom ranges (e.g. between A and T or 3 and 26).
Docs
rand_number
The rand_number() function is for generating a random integer between 2 values (min_num and max_num).
The syntax is: rand_number(min_num, max_num)
min_num and max_num can be any English number.
rand_letter
The rand_letter() function is for generating a random letter between 2 letters (min and max).
The syntax is: rand_letter(min, max)
min and max can be any English letter.
Errors
RandLetterValueError
RandLetterValueError can occur for 4 reasons.
Reason 1 - Lowercase used in min or max values on the rand_letter()
Reason 2 - max value before min alphabetically
Reason 3 - Anything except string passed as min or max values
Reason 4 - min or max contain anything except a single letter
Solution 1 - Use uppercase for both min and max values
Solution 2 - Use an earlier min or later max value
Solution 3 - Use a string for both min and max values
Solution 4 - Make sure the value of min and max contain just a single letter
RandNumberTypeError
RandNumberTypeError can occur for 1 reason.
Reason 1 - Anything except an integer passed as min_num or max_num
Solution 1 - Use an integer for both min_num and max_num values
RandNumberValueError
RandNumberValueError can occur for 1 reason.
Reason 1 - min_num higher than max_num
Solution 1 - Use a lower min_num or higher max_num
Fun fact
I wrote all the rand_letter() function while waiting for an X-ray in the ER
after breaking my hand.
Project details
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 randomade-1.3.tar.gz.
File metadata
- Download URL: randomade-1.3.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8649b682b3b37790510a1c31c30775f0dbff9698147ac6639eb3eb2b4a88bc41
|
|
| MD5 |
d4bb3a2bd06eae572420cc83f6aa2a63
|
|
| BLAKE2b-256 |
9084ae416fd30a9112d0ccdeab30841ebbc695c45e37f29f4eaa2fecef0b4478
|
File details
Details for the file randomade-1.3-py3-none-any.whl.
File metadata
- Download URL: randomade-1.3-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e6b443d4b086eb89cf12aced252cf8f60697334fb919f58a7ee1aaed63c54fd
|
|
| MD5 |
ec5e9f23ec0b16fe0a12a7e502bc1707
|
|
| BLAKE2b-256 |
e7b3cc97c72c2dae92e550e67819c37c0b5ae902a50d28d7db0df0eee6155cc3
|