Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

generators::STD_RANDOM Class Reference

This uses the system's built-in random function. More...

#include <EX_RNGs.h>

Inheritance diagram for generators::STD_RANDOM:

generators::RNG List of all members.

Public Member Functions

virtual unsigned int nextInt ()
 Returns the next pseudo-random number from this RNG.
virtual ~STD_RANDOM ()
 Base deconstructor.
virtual void setSeed (unsigned int seed)
 Sets the current seed to a given number.
virtual unsigned int getMaximum ()
 Returns the maximum number that this RNG can produce, used for normalisation of the integer numbers.

Detailed Description

This uses the system's built-in random function.


Member Function Documentation

unsigned int generators::STD_RANDOM::getMaximum  )  [virtual]
 

Returns the maximum number that this RNG can produce, used for normalisation of the integer numbers.

Returns:
The maximum number which can be returned by this RNG.

Reimplemented from generators::RNG.

unsigned int generators::STD_RANDOM::nextInt  )  [virtual]
 

Returns the next pseudo-random number from this RNG.

Seed updating is done automatically.

Returns:
The next pseudo-random number.

Implements generators::RNG.

void generators::STD_RANDOM::setSeed unsigned int  seed  )  [virtual]
 

Sets the current seed to a given number.

Parameters:
seed The new seed.

Reimplemented from generators::RNG.


The documentation for this class was generated from the following files:
Generated on Fri Sep 4 18:03:46 2009 for LabSci RNG/MC generators by  doxygen 1.3.9.1