ECF 1.5
SimpleRandomizer.h
1#ifndef SimpleRandomizer_h
2#define SimpleRandomizer_h
3
4#include "Randomizer.h"
5
11{
12public:
13 SimpleRandomizer(uint seed = 0);
14
15 int getRandomInteger(int p, int q);
16
17 int getRandomInteger(uint size);
18
19 double getRandomDouble();
20
21 void registerParameters(StateP s);
22
26 bool initialize(StateP s);
27};
28
29typedef boost::shared_ptr<SimpleRandomizer> SimpleRandomizerP;
30
31#endif
32
Abstract Randomizer class.
Definition: Randomizer.h:12
A simple randomizer that uses in-built random number generator.
bool initialize(StateP s)
double getRandomDouble()
Returns random double.
int getRandomInteger(int p, int q)
Returns random integer in [p, q].