9 #ifndef SRANDOMNUMBERGENERATOR_HH
10 #define SRANDOMNUMBERGENERATOR_HH 1
64 int Initialize(int64_t a_seed,
int a_nbThreads);
This header file is mainly used to declare some macro definitions and all includes needed from the st...
static sRandomNumberGenerator * GetInstance()
Instanciate the singleton object and Initialize member variables if not already done, return a pointer to this object otherwise.
double GenerateRdmNber()
Generate a random number for the thread whose index is recovered from the ompenMP function...
Engine * mp_NonThreadedEngine
double GenerateNonThreadedRdmNber()
Generate a random number using the not thread safe random generator, for use in sequential parts of a...
void SetVerbose(int a_verboseLevel)
Set verbosity level.
void operator=(sRandomNumberGenerator const &)
int Initialize(int a_nbThreads)
Instanciate a number of RNG according to the number of threads used in openMP.
Distribution mp_Distribution
sRandomNumberGenerator()
Constructor of sRandomNumberGenerator. Do nothing by default as it is a singleton clasee...
Singleton class that generate a thread-safe random generator number for openMP As singleton...
uniform_real_distribution< double > Distribution
Declaration of class sOutputManager.
vector< Engine > mp_Engines
static sRandomNumberGenerator * mp_Instance
~sRandomNumberGenerator()
Destructor of sRandomNumberGenerator. Do nothing by default.
Engine * GetNonThreadedGenerator()
Get the not thread safe random generator, for use in sequential parts of an otherwise multithreaded c...