|
Library of Assembled Shared Sources
|
Minimal Standard generator by Park and Miller. More...
#include <random.h>
Public Types | |
| using | result_type = num::Tuint32 |
| type of return value. | |
| typedef num::Tuint32 | TValue |
| type of return value. | |
Public Member Functions | |
| RandomParkMiller () | |
| default constructor. | |
| RandomParkMiller (result_type seed) | |
| default constructor. | |
| result_type | operator() () |
| draw a random number | |
| result_type | operator() (result_type supremum) |
| draw a random number remapped to range [0, supremum) | |
Static Public Member Functions | |
| static constexpr result_type | min () |
| minimum return value. | |
| static constexpr result_type | max () |
| maximum return value. | |
Minimal Standard generator by Park and Miller.
RandomParkMiller is the LASS implementation of the Minimal Standard generator by Park and Miller
Park and Miller, "Random Number Generators: Good ones are hard to find", Communications of the ACM, October 1988, Volume 31, No 10, pages 1192-1201.
| typedef num::Tuint32 lass::num::RandomParkMiller::TValue |
| lass::num::RandomParkMiller::RandomParkMiller | ( | ) |
|
explicit |
|
inline |
draw a random number remapped to range [0, supremum)
Definition at line 106 of file random.inl.