14 #ifndef RANDOMNUMBERS_MSERIES_INCLUDED
15 #define RANDOMNUMBERS_MSERIES_INCLUDED
55 static const int Np = 521,
Nq = 32;
87 void reset(
unsigned long seed);
93 void delay3(
const int ndelay);
97 static RandomNumbers *create_object_with_int(
const int& iseed)
102 static RandomNumbers *create_object_with_file(
const std::string& filename)
108 static bool register_factory()
110 bool init1 = RandomNumbers::Factory_int::Register(
"Mseries", create_object_with_int);
111 bool init2 = RandomNumbers::Factory_file::Register(
"Mseries", create_object_with_file);
113 return init1 && init2;
Random number generator base on M-series.
void read_file(const std::string &)
save and load random number status.
RandomNumbers_Mseries(const int ndelay)
void delay3(const int ndelay)
void initset(const int ndelay)
void reset(unsigned long seed)
reset state with new seed.
void write_file(const std::string &)
RandomNumbers_Mseries(const std::string &filename)
Base class of random number generators.
static const double Fnorm
initialized in .cpp file.
static const std::string class_name