Define XorshiftEngine generators with well-chosen parameters as provided by
Marsaglia (2003). The default provided
by Xorshift corresponds to the 128-bit generator as an optimal balance
of statistical quality and speed.
// Initialize an Xorshift generator seeded with constant default valueautorng = newXorshift;
auton = rng.front; // same for each run// Seed with an unpredictable valuerng.seed(unpredictableSeed);
n = rng.front; // different across runs
Define XorshiftEngine generators with well-chosen parameters as provided by Marsaglia (2003). The default provided by Xorshift corresponds to the 128-bit generator as an optimal balance of statistical quality and speed.