Lunchbox
1.12.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 | |
LUNCHBOX_API | RNG () |
Construct a new random number generator. More... | |
LUNCHBOX_API | ~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_API lunchbox::RNG::RNG | ( | ) |
Construct a new random number generator.
LUNCHBOX_API lunchbox::RNG::~RNG | ( | ) |
Destruct the random number generator.
|
inline |