28 if ((rng_type ==
"Mseries") || (rng_type ==
"mseries")) {
30 }
else if ((rng_type ==
"MT19937") || (rng_type ==
"mt19937")) {
34 }
else if (rng_type ==
"SFMT") {
35 return new RandomNumbers_SFMT(seed);
131 return factory(rng_type, seed);
Random number generator base on M-series.
void detailed(const char *format,...)
static RandomNumbers * getInstance()
static const std::string class_name
virtual void write_file(const std::string &)=0
static void save_state(const std::string &filename)
static bool initialize(const std::string &rng_type, unsigned long seed)
static RandomNumbers * factory(const std::string &rng_type, unsigned long seed)
static void restore_state(const std::string &filename)
virtual void reset(unsigned long seed)=0
reset state with new seed.
void crucial(const char *format,...)
virtual void read_file(const std::string &)=0
save and load random number status.
static RandomNumbers * s_rand
static void reset(unsigned long seed)
Base class of random number generators.
static RandomNumbers * New(const std::string &rng_type, unsigned long seed)