Interface definition for a random number generator. More...
#include <RandomEngine.h>
Public Types | |
typedef double | result_type |
Let the boost implementation now what our return type is. | |
Public Member Functions | |
virtual | ~RandomEngine () |
This NOOP makes the compile happy. | |
virtual double | operator() ()=0 |
Returns a random number in the interval [0,1). | |
virtual void | seed (unsigned s)=0 |
Seed the random generator. | |
void | seed () |
Seed the random generator based on the current time. | |
double | min () |
Returns 0.0. | |
double | max () |
Returns 1.0. |
Interface definition for a random number generator.
Generates random numbers (double precision) distributed uniformly over the interval [0,1)