LFSR113 pseudo-random generator by L'Ecuyer.
More...
#include <LFSR113.h>
|
typedef uint32_t | result_type |
|
typedef std::array< result_type, 4 > | seed_type |
|
|
| LFSR113 (seed_type s=default_seed) |
| Constructor. More...
|
|
const seed_type & | seed () |
| Returns the current seed.
|
|
void | seed (seed_type s) |
| Sets the seed for the generator.
|
|
void | jump () |
| Jumps 2^100 iterations past the current state.
|
|
result_type | operator() () |
| Returns the next random number in the sequence.
|
|
|
static constexpr result_type | min () |
| Returns the smallest value in the output range.
|
|
static constexpr result_type | max () |
| Returns the largest value in the output range.
|
|
|
static const seed_type | default_seed |
|
|
bool | operator== (const LFSR113 &e1, const LFSR113 &e2) |
| Returns true if the generators e1 and e2 are in the same state, or else false .
|
|
bool | operator!= (const LFSR113 &e1, const LFSR113 &e2) |
| Returns true if the generators e1 and e2 are not in the same state, or else false .
|
|
LFSR113 pseudo-random generator by L'Ecuyer.
This class generates 32-bit pseudo-random numbers using the LFSR113
generator by L'Ecuyer [14], with a period length near \(2^{113}\).
LatBuilder::LFSR113::LFSR113 |
( |
seed_type |
s = default_seed | ) |
|
|
inline |
Constructor.
- Template Parameters
-
References seed().
The documentation for this class was generated from the following file:
- latbuilder/include/latbuilder/LFSR113.h