#include <random.h>
A 32 bit random number generator. Uses a linear congruential generator. https://cs.adelaide.edu.au/~paulc/teaching/montecarlo/node107.html
◆ random_lcg() [1/2]
etl::random_lcg::random_lcg |
( |
| ) |
|
|
inline |
Default constructor. Attempts to come up with a unique non-zero seed.
◆ random_lcg() [2/2]
etl::random_lcg::random_lcg |
( |
uint32_t |
seed | ) |
|
|
inline |
Constructor with seed value.
- Parameters
-
◆ initialise()
void etl::random_lcg::initialise |
( |
uint32_t |
seed | ) |
|
|
inline |
Initialises the sequence with a new seed value.
- Parameters
-
The documentation for this class was generated from the following file: