Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

MODEL::Random Class Reference

#include <random.h>

Inheritance diagram for MODEL::Random:

Inheritance graph
[legend]
List of all members.

Public Methods

 Random (counter initial_seed=0)
number operator() (void)
virtual number& generate (number &storage)=0
void seed (integer seed)
counter get_seed (void)

Protected Attributes

counter _seed

Detailed Description

Defines random generators which return numbers between 0 and 1

Definition at line 30 of file random.h.


Member Function Documentation

number & generate ( number & storage ) [pure virtual]
 

overload this one to define random number

Reimplemented in MODEL::Uniform.

Referenced by operator()().

counter get_seed ( void ) [inline]
 

grab the current seed status - to be able to continue if needed

Definition at line 49 of file random.h.

number operator() ( void ) [inline]
 

called to generate number

Definition at line 35 of file random.h.

void seed ( integer seed ) [inline]
 

re-seed the generator

Definition at line 41 of file random.h.


The documentation for this class was generated from the following file:
To get the sources or tarballs, please go to SourceForge or you can use the CVS repository.

More Info? Michael Peeters. Also, check our research website: www.alna.vub.ac.be

Last update: June 2002.


Looking for Open Source? Check out SourceForge Logo !