libevocosm::prng Class Reference
The random number generator used by Evocosm.
More...
#include <evocommon.h>
List of all members.
Public Member Functions
-
prng ()
- Constructor.
-
~prng ()
- Destructor.
-
void set_seed (uint32_t a_seed)
- Set the seed for the random number generator.
-
uint32_t get_seed ()
- get seed value
-
size_t get_index (size_t n)
- get a random index value
-
double get_real ()
- get the next value in the range [0,1)
Detailed Description
This class encapsulates the random number generator used by the Evocosm classes.
The documentation for this class was generated from the following file: