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
Release history Release notifications | RSS feed
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 hashes)
Built Distribution
Close
Hashes for RNG-0.0.3-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4511ddc3258e6d593d6cfdad9da0c3ed13a068345f81a2c1d158be04fd1980ba |
|
MD5 | 18c55ddf8cf1778f5d063ccbeffef0d9 |
|
BLAKE2b-256 | 422b15cffc1292ccf1c1c1f015bf93eae0201f3ced8bf29e0ff6149eab506c85 |