16 #ifndef __OMNETPP_CLCG32_H 17 #define __OMNETPP_CLCG32_H 19 #include "simkerneldefs.h" 22 #include "cconfiguration.h" 27 #define LCG32_MAX 0x7ffffffeL 51 static long autoSeeds[256];
58 virtual void initialize(
int seedSet,
int rngId,
int numRngs,
59 int parsimProcId,
int parsimNumPartitions,
63 virtual void selfTest()
override;
66 virtual unsigned long intRand()
override;
69 virtual unsigned long intRandMax()
override;
72 virtual unsigned long intRand(
unsigned long n)
override;
75 virtual double doubleRand()
override;
78 virtual double doubleRandNonz()
override;
81 virtual double doubleRandIncl1()
override;
Abstract interface for random number generator classes.
Definition: crng.h:49
Definition: cabstracthistogram.h:21
Implements a 32-bit (2^31-2 cycle length) linear congruential random number generator.
Definition: clcg32.h:42
Represents the configuration, as accessed by the simulation kernel.
Definition: cconfiguration.h:70