cLCG32 Class Reference

Implements a 32-bit (2^31-2 cycle length) linear congruential random number generator. More...

#include <clcg32.h>

Inheritance diagram for cLCG32:
cRNG cObject

List of all members.

Public Member Functions

virtual void initialize (int seedSet, int rngId, int numRngs, int parsimProcId, int parsimNumPartitions, cConfiguration *cfg)
virtual void selfTest ()
virtual unsigned long intRand ()
virtual unsigned long intRandMax ()
virtual unsigned long intRand (unsigned long n)
virtual double doubleRand ()
virtual double doubleRandNonz ()
virtual double doubleRandIncl1 ()

Detailed Description

Implements a 32-bit (2^31-2 cycle length) linear congruential random number generator.

Source: Raj Jain: The Art of Computer Systems Performance Analysis (John Wiley & Sons, 1991) pp 441-444, 455.


Member Function Documentation

virtual void cLCG32::initialize ( int  seedSet,
int  rngId,
int  numRngs,
int  parsimProcId,
int  parsimNumPartitions,
cConfiguration cfg 
) [virtual]

Sets up the RNG.

Implements cRNG.


The documentation for this class was generated from the following file:
Generated on Tue Dec 2 11:16:28 2014 for OMNeT++ Simulation Library by  doxygen 1.6.3