Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

RandomWell Class Reference

#include <randomwell.h>

List of all members.

Public Methods

void setRNG (RandomNG *r)
void seed (uint32 rseed)
void timeSeed ()
double getRandom ()
int getRandom (int from, int to)
void delRNG ()
int isSet ()

Static Protected Attributes

RandomNGrng


Detailed Description

This is the main source of random numbers for flowreactors. Set the static pointer to a new pseudo-Random-Number-Generator set the random Seed and get the next one from any instance of RandomWell without setting the randomseeds again.

Definition at line 18 of file randomwell.h.


Member Function Documentation

void RandomWell::delRNG ( ) [inline]
 

Definition at line 32 of file randomwell.h.

00032 {delete(rng);}

int RandomWell::getRandom ( int from,
int to ) [inline]
 

Definition at line 30 of file randomwell.h.

00030 {return(rng->getRandom(from, to));}

double RandomWell::getRandom ( ) [inline]
 

Definition at line 29 of file randomwell.h.

00029 {return(rng->getRandom());}

int RandomWell::isSet ( ) [inline]
 

Definition at line 33 of file randomwell.h.

00033 {return(rng != 0x0);}

void RandomWell::seed ( uint32 rseed ) [inline]
 

Definition at line 27 of file randomwell.h.

00027 {rng->seed(rseed);}

void RandomWell::setRNG ( RandomNG * r ) [inline]
 

Definition at line 25 of file randomwell.h.

00025 {rng = r;}

void RandomWell::timeSeed ( ) [inline]
 

Definition at line 28 of file randomwell.h.

00028 {rng->timeSeed();}


Member Data Documentation

RandomNG* RandomWell::rng [static, protected]
 

Definition at line 21 of file randomwell.h.


The documentation for this class was generated from the following file:
Generated at Wed May 9 14:01:09 2001 for FlowReact by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001