Go to the source code of this file.
Define Documentation
#define NUM_RANDVALS 2000 |
Definition at line 16 of file RNG.h.
Function Documentation
double lcgrand |
( |
int |
stream | ) |
|
A run of the mill LCG.
Definition at line 79 of file RNG.cpp.
void random_permutation |
( |
int * |
perm, |
|
|
int |
n |
|
) |
| |
Randomly permutes the perm array of size n. Assumes that perm[] is already filled with the elements to be permuted.
Definition at line 110 of file RNG.cpp.