The L'Ecuyer with Bays-Durham shuffle (a la NR)

#include "util/random_number_generator.h"

Inheritance diagram for Ran2RNG:
Collaboration diagram for Ran2RNG:

Public Member Functions

 Ran2RNG (int seed)
 
virtual void reset_seed (int seed)
 
virtual double rand ()
 Returns a random number.
 

Private Attributes

int _idum
 
int _idum2
 
int _IM1
 
int _IM2
 
int _IMM1
 
int _IA1
 
int _IA2
 
int _IQ1
 
int _IQ2
 
int _IR1
 
int _IR2
 
int _NTAB
 
int _NDIV
 
double _AM
 
double _EPS
 
double _RNMX
 
int _iy
 
int * _iv
 

Constructor & Destructor Documentation

Ran2RNG ( int  seed)

Constructor for L'Ecuyer with Bays-Durham shuffle, takes an integer seed that specifies the full random sequence.


The documentation for this class was generated from the following files: