MinimalStandardRNG Class Reference
The Park and Miller "Minimal Standard" (a la NR).
#include "util/random_number_generator.h"
Inheritance diagram for MinimalStandardRNG:
Collaboration diagram for MinimalStandardRNG:
Public Member Functions | |
MinimalStandardRNG (int seed) | |
virtual double | rand () |
Returns a random number. | |
Private Attributes | |
int | _seed |
int | _IA |
int | _IM |
int | _IQ |
int | _IR |
int | _MASK |
double | _AM |
Constructor & Destructor Documentation
MinimalStandardRNG | ( | int | seed | ) |
Constructor for the minimal standard generator, takes an integer seed that specifies the full random sequence.
The documentation for this class was generated from the following files: