The OpenD Programming Language

mir.random.engine.linear_congruential

Linear Congruential generator.

Members

Aliases

MinstdRand
alias MinstdRand = LinearCongruentialEngine!(uint, 48271, 0, 2147483647)

Define LinearCongruentialEngine generators with well-chosen parameters. MinstdRand0 implements Park and Miller's "minimal standard" generator that uses 16807 for the multiplier. MinstdRand implements a variant that has slightly better spectral behavior by using the multiplier 48271. Both generators are rather simplistic.

MinstdRand0
alias MinstdRand0 = LinearCongruentialEngine!(uint, 16807, 0, 2147483647)

Define LinearCongruentialEngine generators with well-chosen parameters. MinstdRand0 implements Park and Miller's "minimal standard" generator that uses 16807 for the multiplier. MinstdRand implements a variant that has slightly better spectral behavior by using the multiplier 48271. Both generators are rather simplistic.

Structs

LinearCongruentialEngine
struct LinearCongruentialEngine(Uint, Uint a, Uint c, Uint m)

Linear Congruential generator.

Meta

Authors

Andrei Alexandrescu Ilya Yaroshenko (rework)