Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

RandomGenerator Class Reference

#include <RandomGenerator.h>

List of all members.

Public Types

enum  ENTROPY_TYPE { TRUE_RANDOM, PSEUDO_RANDOM, UNSPECIFIED_RANDOM }

Public Member Functions

 RandomGenerator (ENTROPY_TYPE seedSource=PSEUDO_RANDOM)
void setEntropySource (ENTROPY_TYPE seedSource)
void reset (void)
double getDeviate (void)
int getIntegerInRange (int low, int high)

Private Member Functions

void _gatherEntropy ()
void _initialize (void)

Private Attributes

ENTROPY_TYPE _seedSource
int _idum
int _idum2
int iy
int iv [NTAB]
int j
int k
double temp

Static Private Attributes

static const int IM1 = 2147483563
static const int IM2 = 2147483399
static const int IMM1 = IM1-1
static const int IA1 = 40014
static const int IA2 = 40692
static const int IQ1 = 53668
static const int IQ2 = 52774
static const int IR1 = 12211
static const int IR2 = 3791
static const int NTAB = 32
static const int NDIV = 1+IMM1/NTAB
static const double EPS = defined_EPS
static const double RNMX = defined_RNMX
static const double AM = 1.0/RandomGenerator::IM1


Member Enumeration Documentation

enum RandomGenerator::ENTROPY_TYPE
 

Enumerator:
TRUE_RANDOM 
PSEUDO_RANDOM 
UNSPECIFIED_RANDOM 


Constructor & Destructor Documentation

RandomGenerator::RandomGenerator ENTROPY_TYPE  seedSource = PSEUDO_RANDOM  ) 
 


Member Function Documentation

void RandomGenerator::_gatherEntropy void   )  [private]
 

_gatherEntropy():

void RandomGenerator::_initialize void   )  [private]
 

_initialize(): the random number generator.

double RandomGenerator::getDeviate void   ) 
 

getDeviate(): Returns a number greater than or equal to 0.0 and less than 1.0 (*not* less than or equal):

int RandomGenerator::getIntegerInRange int  low,
int  high
 

getIntegerInRange(): Returns an integer in the range from low *inclusive* to high *inclusive*.

void RandomGenerator::reset void   ) 
 

void RandomGenerator::setEntropySource ENTROPY_TYPE  seedSource  ) 
 

setEntropySource() is used in the case that the constructor for the object had seedSource=UNSPECIFIED_RANDOM:


Member Data Documentation

int RandomGenerator::_idum [private]
 

int RandomGenerator::_idum2 [private]
 

ENTROPY_TYPE RandomGenerator::_seedSource [private]
 

const double RandomGenerator::AM = 1.0/RandomGenerator::IM1 [static, private]
 

const double RandomGenerator::EPS = defined_EPS [static, private]
 

const int RandomGenerator::IA1 = 40014 [static, private]
 

const int RandomGenerator::IA2 = 40692 [static, private]
 

const int RandomGenerator::IM1 = 2147483563 [static, private]
 

const int RandomGenerator::IM2 = 2147483399 [static, private]
 

const int RandomGenerator::IMM1 = IM1-1 [static, private]
 

const int RandomGenerator::IQ1 = 53668 [static, private]
 

const int RandomGenerator::IQ2 = 52774 [static, private]
 

const int RandomGenerator::IR1 = 12211 [static, private]
 

const int RandomGenerator::IR2 = 3791 [static, private]
 

int RandomGenerator::iv[NTAB] [private]
 

int RandomGenerator::iy [private]
 

int RandomGenerator::j [private]
 

int RandomGenerator::k [private]
 

const int RandomGenerator::NDIV = 1+IMM1/NTAB [static, private]
 

const int RandomGenerator::NTAB = 32 [static, private]
 

const double RandomGenerator::RNMX = defined_RNMX [static, private]
 

double RandomGenerator::temp [private]
 


The documentation for this class was generated from the following files:
Generated on Fri Nov 18 16:24:39 2011 for MADELINE by  doxygen 1.4.4