class RandomGen

The basic class for Random Number Generator

Public Methods

RandomGen(RandNum s)
Creates a Random Generator with s as initial seed
void init(RandNum s)
Initialize the generator with seed s
RandNum sample()
extract the next random number from the sequence
RandNum getCurrSeed()
Returns the current sequence number
RandNum getModule()
return the constant M (the module of this random generator

Documentation

The basic class for Random Number Generator. It is possible to derive from this class to implement a new generator.
RandomGen(RandNum s)
Creates a Random Generator with s as initial seed. See file include/seeds.h for a list of seeds.

void init(RandNum s)
Initialize the generator with seed s

RandNum sample()
extract the next random number from the sequence

RandNum getCurrSeed()
Returns the current sequence number

RandNum getModule()
return the constant M (the module of this random generator


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de