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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

Supported by

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