ECF 1.5
|
A simple randomizer that uses in-built random number generator. More...
#include <SimpleRandomizer.h>
Public Member Functions | |
SimpleRandomizer (uint seed=0) | |
int | getRandomInteger (int p, int q) |
Returns random integer in [p, q]. More... | |
int | getRandomInteger (uint size) |
Returns radnom integer in [0, p - 1]. More... | |
double | getRandomDouble () |
Returns random double. More... | |
void | registerParameters (StateP s) |
bool | initialize (StateP s) |
virtual int | getRandomInteger (int p, int q)=0 |
Returns random integer in [p, q]. More... | |
virtual int | getRandomInteger (uint p)=0 |
Returns radnom integer in [0, p - 1]. More... | |
virtual double | getRandomDouble ()=0 |
Returns random double. More... | |
virtual void | registerParameters (StateP s) |
virtual bool | initialize (StateP s) |
A simple randomizer that uses in-built random number generator.
Definition at line 10 of file SimpleRandomizer.h.
SimpleRandomizer::SimpleRandomizer | ( | uint | seed = 0 | ) |
Definition at line 6 of file SimpleRandomizer.cpp.
|
virtual |
|
virtual |
Returns random integer in [p, q].
Implements Randomizer.
Definition at line 15 of file SimpleRandomizer.cpp.
|
virtual |
Returns radnom integer in [0, p - 1].
Implements Randomizer.
Definition at line 21 of file SimpleRandomizer.cpp.
|
virtual |
Initialize the randomizer with the seed parameter from the Registry.
Reimplemented from Randomizer.
Definition at line 40 of file SimpleRandomizer.cpp.
|
virtual |
Reimplemented from Randomizer.
Definition at line 33 of file SimpleRandomizer.cpp.