Public Types | Public Member Functions

RandomEngine Class Reference

Interface definition for a random number generator. More...

#include <RandomEngine.h>

Inheritance diagram for RandomEngine:
RandomEngineBoostImplementation< boost_engine > RandomEngineBoostImplementation< boost::lagged_fibonacci1279 > RandomEngineBoostImplementation< boost::lagged_fibonacci19937 > RandomEngineBoostImplementation< boost::lagged_fibonacci2281 > RandomEngineBoostImplementation< boost::lagged_fibonacci23209 > RandomEngineBoostImplementation< boost::lagged_fibonacci3217 > RandomEngineBoostImplementation< boost::lagged_fibonacci4423 > RandomEngineBoostImplementation< boost::lagged_fibonacci44497 > RandomEngineBoostImplementation< boost::lagged_fibonacci607 > RandomEngineBoostImplementation< boost::lagged_fibonacci9689 > RandomEngineBoostImplementation< boost::mt11213b > RandomEngineBoostImplementation< boost::mt19937 >

List of all members.

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.

Detailed Description

Interface definition for a random number generator.

Generates random numbers (double precision) distributed uniformly over the interval [0,1)


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