Go to the source code of this file.
Functions | |
void | uniform_init (int S1, int S2) |
Initialises the uniform random number generator with two seeds. More... | |
int | int_uniform (void) |
Returns a uniformly distributed integer in the range [0 .. More... | |
double | dbl_uniform (void) |
Returns a uniformly distributed real value between [0.0 .. More... | |
double | random_gauss (void) |
Returns a random number distributed as Standard Normal. |
Efficient and portable combined random number generators, C.A.C.M., vol. 31, 742-749, June 1988. Period is very long, about 2.3e18. Plus the Box/Mueller method for standard normal variates.
Definition in file random.h.
|
Initialises the uniform random number generator with two seeds. If S1==0, then the value returned by getpid() is used instead. If S2==0, then the value returned by time(NULL) is used instead. |
|
Returns a uniformly distributed integer in the range [0 .. 2147483563]. |
|
Returns a uniformly distributed real value between [0.0 .. 1.0]. |
|
Returns a random number distributed as Standard Normal.
|