Drives a PRNG. More...
#include <Prng.h>
Public Types | |
using | result_type = uint32_t |
The type this engine generates. | |
Public Member Functions | |
Engine (int seedArg) | |
Engine (Engine &&other) noexcept | |
Engine & | operator= (Engine &&other) noexcept |
Engine (const Engine &other) | |
Engine & | operator= (const Engine &other) |
void | seed (int x) |
Seed the underlying state with an integer value. | |
void | seed (const std::vector< int > &signedSeeds) |
Seed the underlying state with multiple integer values. | |
result_type | operator() () const |
Advances the state and returns a value. More... | |
bool | operator== (const Engine &other) const |
Compare this engine's state with that of another engine. | |
Static Public Member Functions | |
static constexpr result_type | min () |
Minimum value of result_type. | |
static constexpr result_type | max () |
Maximum value of result_type. | |
Private Attributes | |
std::unique_ptr< Impl > | pImpl_ |
Drives a PRNG.
result_type Scine::Molassembler::Random::Engine::operator() | ( | ) | const |
Advances the state and returns a value.
Complexity \(\Theta(1)\)