| 
    Pixie16 Analysis Software Suite
    
   Analysis code for processing of .ldf files 
   | 
 
A random pool of numbers using Mersenne twister - Singleton Class. More...
#include <RandomPool.hpp>

Public Member Functions | |
| void | Generate (void) | 
| Generates a random number.  | |
| double | Get (double range=1) | 
Static Public Member Functions | |
| static RandomPool * | get () | 
Private Member Functions | |
| RandomPool () | |
| Default constructor.  | |
| RandomPool (const RandomPool &) | |
| Overload of the constructor.  | |
| RandomPool & | operator= (RandomPool const &) | 
| the copy constructor  | |
Private Attributes | |
| MTRand | generator | 
| random number generator  | |
| size_t | counter | 
| current random number index  | |
| double | numbers [size] | 
| the pool of random numbers  | |
Static Private Attributes | |
| static RandomPool * | instance | 
| static instance of the class  | |
| static const size_t | size = 1000000 | 
| default size of the pool  | |
A random pool of numbers using Mersenne twister - Singleton Class.
      
  | 
  static | 
| double RandomPool::Get | ( | double | range = 1 | ) | 
| [in] | range | : the upper bound for the range to get |