randomWH API
Generation of Pseudo-Random Variates
|
An instance of the Congruence
struct
.
More...
#include <randomWH.h>
An instance of the Congruence
struct
.
The four seeds used by the generator are stored in this struct
. Because they must have global scope, they are contained within a structure to minimise the chances of a name conflict with other variables of global scope. The functions to process these values are accessed via function pointers contained within the struct. This simulates the member function concept of C++ using only C code. Most applications will require only a single generator instance - this one has safe values assigned to the member function pointers.
Usage
Congruence
but you must initialise them correctly.