Show the flaw by printing the error message.
Show the flaw by printing the error message.
the method where the error occurred
the error message
Return the next random number as a Double in the interval (0, 1).
Return the modulus used by this random number generator.
Return the next stream value as a Int in the set {1, 2, ...
Return the theoretical mean for the random number generator's gen method.
Return the theoretical mean for the random number generator's gen method.
Compute the probability function (pf), i.e., the probability density function (pdf).
Compute the probability function (pf), i.e., the probability density function (pdf).
the mass point whose probability density is sought
the random number stream index
The
Random3
class generates random real numbers in the range (0, 1). It implements, using 64-bit integers (Int's), the 'MINSTD' generator, which is a multiplicative Linear Congruential Generator (LCG). These generators were commonly used in the last century.x_i = a x_i-1 % m
the random number stream index
http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.34.1024
Random
http://random.mat.sbg.ac.at/results/karl/server/node4.html#SECTION00042000000000000000 In case a better generator is needed, a Multiple Recursive Generator (MRG) or Composite Multiple Recursive Generator (CMRG) should be used.