Public Member Functions

SimpleRandomizer Class Reference

A simple randomizer that uses in-built random number generator. More...

#include <SimpleRandomizer.h>

Inheritance diagram for SimpleRandomizer:
Randomizer

List of all members.

Public Member Functions

 SimpleRandomizer (unsigned int seed=0)
int getRandomInteger (int p, int q)
int getRandomInteger (int size)
double getRandomDouble ()
void registerParameters (StateP s)
bool initialize (StateP s)

Detailed Description

A simple randomizer that uses in-built random number generator.

Definition at line 9 of file SimpleRandomizer.h.


Member Function Documentation

double SimpleRandomizer::getRandomDouble (  )  [virtual]

Returns random double

Implements Randomizer.

Definition at line 27 of file SimpleRandomizer.cpp.

int SimpleRandomizer::getRandomInteger ( int  p  )  [virtual]

Returns radnom integer in [0, p - 1]

Implements Randomizer.

Definition at line 21 of file SimpleRandomizer.cpp.

int SimpleRandomizer::getRandomInteger ( int  p,
int  q 
) [virtual]

Returns random integer in [p, q]

Implements Randomizer.

Definition at line 15 of file SimpleRandomizer.cpp.

bool SimpleRandomizer::initialize ( StateP  s  )  [virtual]

Initialize the randomizer with the seed parameter from the Registry.

Reimplemented from Randomizer.

Definition at line 39 of file SimpleRandomizer.cpp.


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