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... | |
virtual result_type | min () const =0 |
Minimum number that can be generated. More... | |
virtual result_type | max () const =0 |
Maximum number that can be generated. More... | |
virtual result_type | operator() ()=0 |
Generate random number in [min(), max()]. More... | |
virtual | ~RNG ()=default |
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.
|
pure virtual |
Maximum number that can be generated.
Implemented in HEJ::DefaultRNG.
|
pure virtual |
Minimum number that can be generated.
Implemented in HEJ::DefaultRNG.
|
pure virtual |
Generate random number in [min(), max()].
Implemented in HEJ::DefaultRNG.