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

TRNG::YARN2 Class Reference

YARN -- a modified multiple recursive generator. More...

#include <trng.h>

Inheritance diagram for TRNG::YARN2:

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

Public Methods

 YARN2 (long a0_=1498809829l, long a1_=1160990996l, long modulus_=2147483647l, long seed_=0l, long b_=123567893l)
 constructor. More...


Detailed Description

This multiple recursive generator uses a linear recurrence of order two with a prime modulus.

Linear structures are destroyed by a nonlinear bijective mapping from The parameter has to be a generating element of the multiplicative group modulo .

Author:
Heiko Bauke

Definition at line 1485 of file trng.h.


Constructor & Destructor Documentation

TRNG::YARN2::YARN2 long    a0_ = 1498809829l,
long    a1_ = 1160990996l,
long    modulus_ = 2147483647l,
long    seed_ = 0l,
long    b_ = 123567893l
 

The constructor's default values implement a pseudo random number generator with , and . This generator has a period of . The parameter is chosen to be .

Parameters:
a0_  multiplier
a1_  multiplier
modulus_  prime modulus
seed_  default seed
b_  parameter


The documentation for this class was generated from the following file:
Generated on Wed Feb 19 02:00:05 2003 for Tina's Random Number Generators by doxygen1.2.15