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

TRNG::ParkMiller Class Reference

Linear congruential generator. More...

#include <trng.h>

Inheritance diagram for TRNG::ParkMiller:

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

Public Methods

 ParkMiller (ParkMiller_param param=ParkMiller_param_sets::mindstd, long seed_=0l)
 constructor. More...


Detailed Description

This class implements a simple multiplicative 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.

Author:
Heiko Bauke

Definition at line 1137 of file trng.h.


Constructor & Destructor Documentation

TRNG::ParkMiller::ParkMiller ParkMiller_param    param = ParkMiller_param_sets::mindstd,
long    seed_ = 0l
 

The default values of the constructor implement a modified random number generator proposed by Park and Miller. This generator has a period of .

Parameters:
param  parameter set
seed_  default seed


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