Lunchbox
1.15.0
Multi-threaded C++ toolbox library for all application developers creating high-performance multi-threaded programs.
|
A random number generator. More...
#include <rng.h>
Public Member Functions | |
RNG () | |
Construct a new random number generator. More... | |
~RNG () | |
Destruct the random number generator. More... | |
template<typename T > | |
T | get () |
Generate a random number. More... | |
template<> | |
float | get () |
template<> | |
double | get () |
template<> | |
bool | get () |
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.
Example:
lunchbox::RNG::RNG | ( | ) |
Construct a new random number generator.
lunchbox::RNG::~RNG | ( | ) |
Destruct the random number generator.
|
inline |