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. The pseudo random number is calculated by

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 never returns 0. For this reason this generator is for internal use only.

Author:
Heiko Bauke

Definition at line 1044 of file trng.h.


The documentation for this class was generated from the following file:
Generated on Mon Apr 21 16:27:51 2003 for Tina's Random Number Generators by doxygen1.2.15