7 #ifndef SSMPACK_RANDOM_GENERATOR_HPP
8 #define SSMPACK_RANDOM_GENERATOR_HPP
47 void setSeed(TSeed seed) {gen_.seed(seed);}
51 std::random_device rd;
74 #endif //SSMPACK_RANDOM_GENERATOR_HPP
static Generator & get()
Returns a reference to singleton instance.
A singleton wrapper of an instance of random generator.
void setSeed(TSeed seed)
Sets the seed for the core generator.
std::mt19937 CoreGenerator
void setRandomSeed()
Convenient function to set random seed for singleton generator object.
void setSeed(TSeed seed)
Convenient function to set seed for singleton generator object.
CoreGenerator & getGenerator()
Returns reference to the core generator.
void setRandomSeed()
Sets a random seed for core generator.