13 #ifndef ROOT_Math_MersenneTwisterEngine 14 #define ROOT_Math_MersenneTwisterEngine 16 #ifndef ROOT_Math_TRandomEngine 80 static unsigned int MinInt() {
return 0; }
82 static unsigned int MaxInt() {
return 0xffffffff; }
86 static std::string
Name() {
87 return "MersenneTwisterEngine";
93 void SetState(
const std::vector<uint32_t> & state) {
94 for (
unsigned int i = 0; i <
kSize; ++i)
101 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)
This namespace contains pre-defined functions to be used in conjuction with TExecutor::Map and TExecu...
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.