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

TRNG::CLCG2 Class Reference

combined generator. More...

#include <trng.h>

Inheritance diagram for TRNG::CLCG2:

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

Public Methods

 CLCG2 (long a1=376555083l, long m1=2147482951l, long a2=1028879659l, long m2=2147482949l, long seed_=0l)
 constructor. More...


Detailed Description

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

Author:
Heiko Bauke

Definition at line 1346 of file trng.h.


Constructor & Destructor Documentation

TRNG::CLCG2::CLCG2 long    a1 = 376555083l,
long    m1 = 2147482951l,
long    a2 = 1028879659l,
long    m2 = 2147482949l,
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
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