Skip to main content

No project description provided

Project description

Randomade v1.5.2

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
  • Random strings with numbers, letters and symbols (specified length)
  • Random symbols
  • Random character (could be a number, symbol or letter)

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.

rand_symbol

The rand_symbol() function is for generating a random symbol (or special character).

The syntax is: rand_symbol() (no positional arguments), which returns a random symbol

from the ones on a 100% keyboard. (Only native key ones)

rand_string

The rand_string() function is for generating a random string of letters, numbers and symbols

with a specified length (positional argument length).

The syntax is: rand_string(length) (length can be any integer).

rand_character

The rand_character() function is for generating any random character (letter, number or symbol).

The syntax is: rand_character() (no positional arguments).


Errors

rand_letter

RandLetterStringError Cause: positional argument min and/or max not passed as a string.

Solution: pass both min and max as strings.

RandLetterLengthError Cause: more than one character passed in positional argument min and/or max.

Solution: pass only one character for min and max.

RandLetterAlphabetticalError Cause: positional argument max earlier in alphabetical order than min.

Solution: pass min as earlier or max as later.

RandLetterArgumentError Cause: missing positional argument min and/or max.

Solution: pass both min and max positional arguments.

rand_number

RandNumberOrderError Cause: positional argument min_num higher than positional argument max_num.

Solution: decrease min_num or increase max_num.

RandNumberIntegerError Cause: position argument min_num and/or max_num not passed as an integer.

Solution: pass both min_num and max

RandNumberArgumentError Cause: positional arguments min_num and/or max_num missing.

Solution: pass both min_num and max_num as integers.

rand_string

RandStringIntegerError Cause: positional argument length not passed as an integer.

Solution: pass length as an integer.

RandStringArgumentError Cause: missing positional argument length.

Solution: pass a value as the length positional argument.


Fun fact

I wrote all the rand_letter() function while waiting for an X-ray in the ER after breaking my thumb.

Created by Lachy.

GitHub: github.com/backspace-studios

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.5.2.tar.gz (3.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.5.2-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: randomade-1.5.2.tar.gz
  • Upload date:
  • Size: 3.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.5.2.tar.gz
Algorithm Hash digest
SHA256 450158a14f6275eda14ff18022d20af1649e4112156d5f7d21d6b65313222616
MD5 492855b7320edf0a7d563db58f6e1b64
BLAKE2b-256 0b25b10eb68583503c8214ee8e4031e5c06935ea8b17007afc8f20d375cd76da

See more details on using hashes here.

File details

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

File metadata

  • Download URL: randomade-1.5.2-py3-none-any.whl
  • Upload date:
  • Size: 3.8 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.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d12db50719eb165fdce786c2ccaef0cc1a3c1b7bcd7bc9581191920924359ff2
MD5 e0a63ac1ea6a22fb78549d73ad4cd330
BLAKE2b-256 110153279b8be46f70b6bd9dd0837814f8478136139c4b39b4fa3156008e0064

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