Skip to main content

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 b
  • gen_random_bytes(nbytes: int = None) -> bytes: This function creates a random sequence of bytes
  • gen_random_urlsafe_token(nbytes: int = None) -> str: This function creates a random string that is safe to use in URLs
  • gen_random_single_digit() -> int: This function creates a random single digit between 0 and 9
  • gen_random_true_or_false() -> bool: This function creates a random boolean value

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

randgen-1.0.1.tar.gz (39.0 kB view details)

Uploaded Source

Built Distribution

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

randgen-1.0.1-py3-none-any.whl (27.3 kB view details)

Uploaded Python 3

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

Hashes for randgen-1.0.1.tar.gz
Algorithm Hash digest
SHA256 88049cff80bce33607c88141e4297e111b5d20d3ee9a5f4126aab6595b5d1598
MD5 cd2b7a6224de4cc34cbe0da0b15aacf8
BLAKE2b-256 211a159afd90700ca5a7ff9b1da524922d4a5c1f1c9500ba24ff93af69f21bb2

See more details on using hashes here.

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

Hashes for randgen-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e61538e56f4f9c6b3b8b4732f90c994d435b013d26f6cd97b278f5360dded941
MD5 a7c31ee788fca0123f531c58f9556972
BLAKE2b-256 50f56aa30d70edc150a73b7585736d761db8c044305a11048bbd7b1004eb8028

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