#include <planck_rng.h>
Public Member Functions | |
planck_rng (unsigned int x1=123456789, unsigned int y1=362436069, unsigned int z1=521288629, unsigned int w1=88675123) | |
void | seed (unsigned int x1=123456789, unsigned int y1=362436069, unsigned int z1=521288629, unsigned int w1=88675123) |
unsigned int | int_rand_uni () |
double | rand_uni () |
double | rand_gauss () |
double | rand_exp () |
Definition at line 47 of file planck_rng.h.
|
Initializes the generator with 0 to 4 seed values. Definition at line 82 of file planck_rng.h. |
|
Re-initializes the generator with 0 to 4 seed values. Definition at line 92 of file planck_rng.h. |
|
Returns uniformly distributed random integer numbers from the interval [0;0xFFFFFFFF]. Definition at line 102 of file planck_rng.h. |
|
Returns uniformly distributed random numbers from the interval [0;1[.
Definition at line 113 of file planck_rng.h. |
|
Returns random numbers with Gaussian distribution (mean=0, sigma=1). Uses rand_uni() internally. Definition at line 120 of file planck_rng.h. |
|
Returns exponentially distributed random numbers (mean=1, nonnegative). Uses rand_uni() internally. Definition at line 147 of file planck_rng.h. |