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

TRNG::CLCG4 Class Reference

combined generator. More...

#include <trng.h>

Inheritance diagram for TRNG::CLCG4:

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

Public Methods

 CLCG4 (long a1=376555083l, long m1=2147482951l, long a2=1028879659l, long m2=2147482949l, long a3=225802979l, long m3=2147482943l, long a4=2028073966l, long m4=2147482859l, long seed_=0l)
 constructor. More...


Detailed Description

This is a combined linear congruential random number generator with four generators.

Author:
Heiko Bauke

Definition at line 1471 of file trng.h.


Constructor & Destructor Documentation

TRNG::CLCG4::CLCG4 long    a1 = 376555083l,
long    m1 = 2147482951l,
long    a2 = 1028879659l,
long    m2 = 2147482949l,
long    a3 = 225802979l,
long    m3 = 2147482943l,
long    a4 = 2028073966l,
long    m4 = 2147482859l,
long    seed_ = 0l
 

The constructor's default values implement a pseudo random number generator with

This generator has a period of . The multipliers were found by an exhausive search applying the spectral test in up to eight dimensions.

Parameters:
a1  multiplier
m1  prime modulus
a2  multiplier
m2  prime modulus
a3  multiplier
m3  prime modulus
a4  multiplier
m4  prime modulus
seed_  default seed


The documentation for this class was generated from the following file:
Generated on Tue Dec 10 13:31:39 2002 for Tina's Random Number Generators by doxygen1.2.15