Skip to main content

No project description provided

Project description

Randomade v1.4.4

==============

Randomade is built using the random library, which comes preinstalled with Python.
It is specifically built for getting random values. You can currently get:

  • Random letters (custom range)
  • Random numbers (custom range)
  • Random hex codes (no range)

Docs


Usage


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), which returns a random number. min_num and max_num can be any 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), which returns a random letter. min and max can be any letter.

rand_hex

The rand_hex() is a function used for generating a random hex code. The syntax is: rand_hex(), which returns a random hex code.


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 thumb.

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

randomade-1.4.4.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

randomade-1.4.4-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file randomade-1.4.4.tar.gz.

File metadata

  • Download URL: randomade-1.4.4.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.0

File hashes

Hashes for randomade-1.4.4.tar.gz
Algorithm Hash digest
SHA256 4df50e76e30318583f37a7c10ba83c91121af4e7946072ac4f494848cd5df9b1
MD5 39c1ba3b08aae24e7eba96b9d35ca0f0
BLAKE2b-256 fe20afd16c84b82501383773a1a8cad00bfadf76548200776689c674ebc78a9e

See more details on using hashes here.

File details

Details for the file randomade-1.4.4-py3-none-any.whl.

File metadata

  • Download URL: randomade-1.4.4-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.0

File hashes

Hashes for randomade-1.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 426b9beee69729656c42df560e488dca2bd393d3d1edb49db98d087268a436b5
MD5 db3c1b500e5f7ad7213385972ba1ca3c
BLAKE2b-256 06cfd30c00dffcef23620b1c2f16da27ee357ccb6cfa805c0539a3cae7310019

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page