Skip to main content

Random Number Generators

Project description

RNG: Random Number Generator

Provides low-level access to the C++ Random library.

Random Engine

Mersenne Twister 64. More info: https://en.wikipedia.org/wiki/Mersenne_Twister.

Random Bool
  • random_bool(percent_true: float) -> bool

Random Integer

  • random_int(lo_limit: int, hi_limit: int) -> int
  • random_binomial(number_of_trials: int, probability: float) -> int
  • random_negative_binomial(number_of_trials: int, probability: float) -> int
  • random_geometric(probability: float) -> int
  • random_poisson(average: float) -> int
  • random_discrete(count: int, xmin: int, xmax: int) -> int

Random Floating Point

  • random_floating_point(lo_limit: float, hi_limit: float) -> float
  • random_exponential(lambda_rate: float) -> float
  • random_gamma(shape: float, scale: float) -> float
  • random_weibull(shape: float, scale: float) -> float
  • random_extreme_value(shape: float, scale: float) -> float
  • random_normal(average: float, std_dev: float) -> float
  • random_log_normal(log_mean: float, log_deviation: float) -> float
  • random_chi_squared(degrees_of_freedom: float) -> float
  • random_cauchy(location: float, scale: float) -> float
  • random_fisher_f(degrees_of_freedom_1: float, degrees_of_freedom_2: float) -> float
  • random_student_t(degrees_of_freedom: float) -> float

C-style Random

  • c_rand() -> int

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

RNG-0.0.3.tar.gz (57.2 kB view details)

Uploaded Source

Built Distribution

RNG-0.0.3-cp37-cp37m-macosx_10_9_x86_64.whl (59.9 kB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

File details

Details for the file RNG-0.0.3.tar.gz.

File metadata

  • Download URL: RNG-0.0.3.tar.gz
  • Upload date:
  • Size: 57.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.7.2

File hashes

Hashes for RNG-0.0.3.tar.gz
Algorithm Hash digest
SHA256 66b4f29a4076f0e7b063fc181010132c9bde6bd255d4597c975e0d3233901000
MD5 041d9d6e6cbb8586ef99d54ec84a4a74
BLAKE2b-256 f0a0ea8143bb2230fe766cad5694efd6649220ae09b109e4ffaf5bdb5c029a67

See more details on using hashes here.

File details

Details for the file RNG-0.0.3-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: RNG-0.0.3-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 59.9 kB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.7.2

File hashes

Hashes for RNG-0.0.3-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 4511ddc3258e6d593d6cfdad9da0c3ed13a068345f81a2c1d158be04fd1980ba
MD5 18c55ddf8cf1778f5d063ccbeffef0d9
BLAKE2b-256 422b15cffc1292ccf1c1c1f015bf93eae0201f3ced8bf29e0ff6149eab506c85

See more details on using hashes here.

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