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

TRNG::CLCG3 Class Reference

combined generator. More...

#include <trng.h>

Inheritance diagram for TRNG::CLCG3:

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

Public Methods

 CLCG3 (long a1=376555083l, long m1=2147482951l, long a2=1028879659l, long m2=2147482949l, long a3=225802979l, long m3=2147482943l, long seed_=0l)
 constructor. More...


Detailed Description

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

Author:
Heiko Bauke

Definition at line 1405 of file trng.h.


Constructor & Destructor Documentation

TRNG::CLCG3::CLCG3 long    a1 = 376555083l,
long    m1 = 2147482951l,
long    a2 = 1028879659l,
long    m2 = 2147482949l,
long    a3 = 225802979l,
long    m3 = 2147482943l,
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
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