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.
// seed with a constantautornd0 = MinstdRand0(1);
auton = rnd0.front;
// same for each runassert(n == 16807);
// Seed with an unpredictable valuernd0.seed(unpredictableSeed);
n = rnd0.front; // different across runs
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.