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)
static unsigned int MaxInt()
maximum integer taht can be generated
void GetState(std::vector< uint32_t > &state)
Namespace for new ROOT classes and functions.
Random number generator class based on M.
static std::string Name()
MersenneTwisterEngine(uint32_t seed=4357)
virtual ~MersenneTwisterEngine()
static unsigned int MinInt()
minimum integer taht can be generated
void SetSeed(Result_t seed)
set the seed x
double Rndm_impl()
generate a random double number
void SetState(const std::vector< uint32_t > &state)
Namespace for new Math classes and functions.