Interface for random number generator. More...
#include <RNG.hh>
Public Types | |
using | result_type = unsigned |
Random number type, see std::RandomNumberDistribution. More... | |
Public Member Functions | |
virtual double | flat ()=0 |
Generate random number in [0,1) More... | |
result_type | operator() () |
Generate random number in [min(), max()]. More... | |
virtual | ~RNG ()=default |
Static Public Member Functions | |
static constexpr result_type | min () |
Minimum number that can be generated. More... | |
static constexpr result_type | max () |
Maximum number that can be generated. More... | |
Interface for random number generator.
using HEJ::RNG::result_type = unsigned |
Random number type, see std::RandomNumberDistribution.
|
virtualdefault |
|
pure virtual |
Generate random number in [0,1)
Implemented in HEJ::Mixmax, and HEJ::Ranlux64.
|
inlinestaticconstexpr |
Maximum number that can be generated.
|
inlinestaticconstexpr |
Minimum number that can be generated.
|
inline |