RandomEngine Class Reference

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

#include <RandomEngine.h>

Inheritance diagram for RandomEngine:

Inheritance graph
[legend]

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)

Definition at line 27 of file RandomEngine.h.


Member Typedef Documentation

Let the boost implementation now what our return type is.

Definition at line 32 of file RandomEngine.h.


Constructor & Destructor Documentation

virtual RandomEngine::~RandomEngine (  )  [inline, virtual]

This NOOP makes the compile happy.

Definition at line 35 of file RandomEngine.h.


Member Function Documentation

virtual double RandomEngine::operator() (  )  [pure virtual]

virtual void RandomEngine::seed ( unsigned  s  )  [pure virtual]

void RandomEngine::seed (  )  [inline]

Seed the random generator based on the current time.

Definition at line 44 of file RandomEngine.h.

double RandomEngine::min (  )  [inline]

Returns 0.0.

Definition at line 50 of file RandomEngine.h.

Referenced by SimNetwork::getSeedFromGenerator().

double RandomEngine::max (  )  [inline]

Returns 1.0.

Definition at line 53 of file RandomEngine.h.

Referenced by SimNetwork::getSeedFromGenerator().


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

Generated on Wed Jul 9 16:34:52 2008 for PCSIM by  doxygen 1.5.5