ssmkit  master-68aed98
Generator Class Reference

A singleton wrapper of an instance of random generator. More...

Public Member Functions

CoreGeneratorgetGenerator ()
 Returns reference to the core generator. More...
 
template<class TSeed >
void setSeed (TSeed seed)
 Sets the seed for the core generator. More...
 
void setRandomSeed ()
 Sets a random seed for core generator. More...
 

Static Public Member Functions

static Generatorget ()
 Returns a reference to singleton instance. More...
 

Detailed Description

A singleton wrapper of an instance of random generator.

This is used in the rendom() methods of distribution classes.

Definition at line 20 of file generator.hpp.

Member Function Documentation

static Generator& get ( )
inlinestatic
CoreGenerator& getGenerator ( )
inline

Returns reference to the core generator.

Definition at line 44 of file generator.hpp.

void setSeed ( TSeed  seed)
inline

Sets the seed for the core generator.

Definition at line 47 of file generator.hpp.

Referenced by ssmkit::random::setSeed().

void setRandomSeed ( )
inline

Sets a random seed for core generator.

Definition at line 49 of file generator.hpp.

Referenced by ssmkit::random::setRandomSeed().


The documentation for this class was generated from the following file: