Function rgsl::types::rng::other::r250

source ·
pub fn r250() -> RngType
Expand description

This is the shift-register generator of Kirkpatrick and Stoll. The sequence is based on the recurrence

x_n = x_{n-103} ^^ x_{n-250} where ^^ denotes “exclusive-or”, defined on 32-bit words. The period of this generator is about 2^250 and it uses 250 words of state per generator.

For more information see,

S. Kirkpatrick and E. Stoll, “A very fast shift-register sequence random number generator”, Journal of Computational Physics, 40, 517–526 (1981)