Interface for random number generator. More...
#include <RNG.hh>
Public Member Functions | |
virtual double | flat ()=0 |
Generate random number in (0,1]. More... | |
virtual unsigned | min () const =0 |
Minimum number that can be generated. More... | |
virtual unsigned | max () const =0 |
Maximum number that can be generated. More... | |
virtual unsigned | operator() ()=0 |
Generate random number in [min(), max()]. More... | |
virtual | ~RNG ()=default |
Interface for random number generator.
|
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.