Pseudo-random number generator algorithm interface.
More...
#include <randombit_generator.h>
Pseudo-random number generator algorithm interface.
◆ result_type
◆ ~RandomBitGenerator()
virtual hgps::RandomBitGenerator::~RandomBitGenerator |
( |
| ) |
|
|
virtualdefault |
◆ discard()
virtual void hgps::RandomBitGenerator::discard |
( |
const unsigned long long |
skip | ) |
|
|
pure virtual |
Advances the engine's state by a specified amount.
- Parameters
-
skip | The number of times to advance the state |
Implemented in hgps::MTRandom32.
◆ max()
static constexpr result_type hgps::RandomBitGenerator::max |
( |
| ) |
|
|
inlinestaticconstexpr |
Gets the largest possible value in the output range.
- Returns
- The maximum potentially generated value.
◆ min()
static constexpr result_type hgps::RandomBitGenerator::min |
( |
| ) |
|
|
inlinestaticconstexpr |
Gets the smallest possible value in the output range.
- Returns
- The minimum potentially generated value.
◆ next_double()
virtual double hgps::RandomBitGenerator::next_double |
( |
| ) |
|
|
pure virtualnoexcept |
Generates a random floating point number in range [0,1)
- Returns
- A floating point value in range [0,1).
Implemented in hgps::MTRandom32.
◆ operator()()
virtual unsigned int hgps::RandomBitGenerator::operator() |
( |
| ) |
|
|
pure virtual |
◆ seed()
virtual void hgps::RandomBitGenerator::seed |
( |
const unsigned int |
seed | ) |
|
|
pure virtual |
Sets the current state of the generator engine.
- Parameters
-
seed | The value to initialise the internal state |
Implemented in hgps::MTRandom32.
The documentation for this class was generated from the following file: