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

TRNG::generic_MLCG Class Reference

linear congruential generator. More...

#include <trng.h>

Inheritance diagram for TRNG::generic_MLCG:

TRNG::RNG< generic_MLCG > List of all members.

Detailed Description

This class implements a simple linear congruential pseudo random number generator with a prime modulus in the form

is the actual pseudo random number. The modulus has to be a prime smaller than and a generating element of the multiplicative group modulo to generate a maxmal length period. The behaviour of method rand() is different from other generators, it returns never 0. For this reason this generator is for internal use only.

Author:
Heiko Bauke

Definition at line 1050 of file trng.h.


The documentation for this class was generated from the following file:
Generated on Wed Feb 19 02:00:04 2003 for Tina's Random Number Generators by doxygen1.2.15