|
Lunchbox
1.6.0
|
A random number generator. More...
#include <rng.h>
Inheritance diagram for lunchbox::RNG:
Collaboration diagram for lunchbox::RNG: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.
Construct a new random number generator.
Destruct the random number generator.
| bool lunchbox::RNG::get | ( | ) | [inline] |
| void lunchbox::RNG::reseed | ( | ) |
Re-initialize the seed value for pseudo RNG's.
| bool init | ( | const int | argc, |
| char ** | argv | ||
| ) | [friend] |
Initialize the Lunchbox base classes.
| argc | the command line argument count. |
| argv | the command line argument values. |
1.7.6.1