Xorshift generator.
Implemented according to Xorshift RNGs
(Marsaglia, 2003) when the size is small. For larger sizes the generator
uses Sebastino Vigna's optimization of using an index to avoid needing
to rotate the internal array.
Period is 2 ^^ nbits - 1 except for a legacy 192-bit uint version (see
note below).
Xorshift generator. Implemented according to Xorshift RNGs (Marsaglia, 2003) when the size is small. For larger sizes the generator uses Sebastino Vigna's optimization of using an index to avoid needing to rotate the internal array.
Period is 2 ^^ nbits - 1 except for a legacy 192-bit uint version (see note below).