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

MODEL::Uniform Class Reference

#include <random.h>

Inheritance diagram for MODEL::Uniform:

Inheritance graph
Collaboration diagram for MODEL::Uniform:

Collaboration graph
List of all members.

Public Methods

 Uniform (counter inital_seed=0)
virtual number& generate (number &storage)
const counter& seed_update (void)

Private Attributes

counter tabel [tabelsize]
counter lastseed

Static Private Attributes

const counter IA = 16807
const counter IM = 2147483647
const number AM = 1.0/IM
const counter IQ = 127773
const counter IR = 2836
const counter tabelsize = 32
const counter NDIV = 1+(IM-1)/tabelsize
const number RNMX = 1.0-EPS

Detailed Description

Minimal uniform Random generator

Definition at line 56 of file random.h.

Member Function Documentation

number & generate ( number & storage ) [virtual]

overload this one to define random number

Reimplemented from MODEL::Random.

Definition at line 40 of file random.cpp.

The documentation for this class was generated from the following files:
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:

Last update: June 2002.

Looking for Open Source? Check out SourceForge Logo !