scc
2022.4.0
SystemC components library
|
a Mersenne-Twister pseudo random number generator More...
#include <mt19937_rng.h>
Static Public Member Functions | |
static void | seed (uint64_t new_seed=std::mt19937_64::default_seed) |
static uint64_t | uniform () |
template<typename T > | |
static T | uniform () |
static uint64_t | uniform (uint64_t min, uint64_t max) |
static double | normal () |
static double | lognormal () |
a Mersenne-Twister pseudo random number generator
Definition at line 31 of file mt19937_rng.h.
|
inlinestatic |
generates the next random integer number with log normal distribution (similar to rand() )
Definition at line 77 of file mt19937_rng.h.
|
inlinestatic |
generates the next random double precision float number with normal distribution (similar to rand() )
Definition at line 69 of file mt19937_rng.h.
|
inlinestatic |
Seeds the mersenne twister PRNG with the given value
new_seed |
Definition at line 37 of file mt19937_rng.h.
|
inlinestatic |
generates the next random integer number with uniform distribution (similar to rand() )
Definition at line 42 of file mt19937_rng.h.
|
inlinestatic |
generates the next random integer number with uniform distribution in the range of the given type
Definition at line 50 of file mt19937_rng.h.
|
inlinestatic |
generates the next random integer number with uniform distribution between (and including) min and max
min | the lower limit of the interval |
max | the upper limit of the interval |
Definition at line 60 of file mt19937_rng.h.