13#ifndef ROOT_Math_MersenneTwisterEngine
14#define ROOT_Math_MersenneTwisterEngine
78 static unsigned int MinInt() {
return 0; }
80 static unsigned int MaxInt() {
return 0xffffffff; }
84 static std::string
Name() {
85 return "MersenneTwisterEngine";
91 void SetState(
const std::vector<uint32_t> & state) {
92 for (
unsigned int i = 0; i <
kSize; ++i)
99 for (
unsigned int i = 0; i <
kSize; ++i)
Random number generator class based on M.
void GetState(std::vector< uint32_t > &state)
static std::string Name()
void SetSeed(Result_t seed)
set the seed x
static unsigned int MinInt()
minimum integer taht can be generated
virtual ~MersenneTwisterEngine()
void SetState(const std::vector< uint32_t > &state)
static unsigned int MaxInt()
maximum integer taht can be generated
MersenneTwisterEngine(uint32_t seed=4357)
double Rndm_impl()
generate a random double number
Namespace for new Math classes and functions.