|
Embedded Template Library 1.0
|
#include <random.h>
Public Member Functions | |
| random_clcg () | |
| random_clcg (uint32_t seed) | |
| void | initialise (uint32_t seed) |
| uint32_t | operator() () |
| Get the next random_clcg number. | |
| uint32_t | range (uint32_t low, uint32_t high) |
| Get the next random_clcg number in a specified inclusive range. | |
A 32 bit random number generator. Uses a combined linear congruential generator. https://cs.adelaide.edu.au/~paulc/teaching/montecarlo/node107.html
|
inline |
Default constructor. Attempts to come up with a unique non-zero seed.
|
inline |
Constructor with seed value.
| seed | The new seed value. |
|
inline |
Initialises the sequence with a new seed value.
| seed | The new seed value. |