13 #ifndef ROOT_Math_MixMaxEngine 14 #define ROOT_Math_MixMaxEngine 78 template<
int N,
int SkipNumber>
124 static std::string
Name();
130 void GetState(std::vector<StateInt_t> & state)
const;
134 void SetState(
const std::vector<StateInt_t> & state);
static uint64_t MaxInt()
maximum integer that can be generated. For MIXMAX is 2^61-1
static std::string Name()
get name of the generator
void SetState(const std::vector< StateInt_t > &state)
set the full initial generator state
Namespace for new ROOT classes and functions.
static uint64_t MinInt()
minimum integer that can be generated. For MIXMAX is 0
MixMaxEngine< 256, 2 > MixMaxEngine256
MixMaxEngineImpl< N > * fRng
MixMaxEngine(uint64_t seed=1)
double Rndm_impl()
implementation function to generate the random number
void SetSeed(Result_t seed)
set the generator seed
void RndmArray(int n, double *array)
generate an array of random numbers
MixMaxEngine is a wrapper class for the MIXMAX Random number generator.
int Counter() const
Get the counter (between 0 and Size-1)
double operator()()
generate a double random number (faster interface)
static int Size()
Get the size of the generator.
MixMaxEngine< 240, 0 > MixMaxEngine240
Result_t IntRndm()
generate a 64 bit integer number
MixMaxEngine< 17, 0 > MixMaxEngine17
void GetState(std::vector< StateInt_t > &state) const
get the state of the generator
Namespace for new Math classes and functions.