Lunchbox
1.8.0
|
A random number generator. More...
#include <rng.h>
Public Member Functions | |
RNG () | |
Construct a new random number generator. | |
~RNG () | |
Destruct the random number generator. | |
void | reseed () |
Re-initialize the seed value for pseudo RNG's. | |
template<typename T > | |
T | get () |
Generate a random number. |
Friends | |
bool | init (const int argc, char **argv) |
Initialize the Lunchbox base classes. |
A random number generator.
Generates a set of random, or if not supported by the operating system, pseudo-random numbers. Each instance creates its own series of numbers.
lunchbox::RNG::RNG | ( | ) |
Construct a new random number generator.
lunchbox::RNG::~RNG | ( | ) |
Destruct the random number generator.
|
inline |
void lunchbox::RNG::reseed | ( | ) |
Re-initialize the seed value for pseudo RNG's.
|
friend |
Initialize the Lunchbox base classes.
argc | the command line argument count. |
argv | the command line argument values. |