Leave a Comment »
Blog at WordPress.com.
Entries and comments feeds.
Multiply with carry
Combination of a Multiply with carry generator and a simple multiplicative generator. Returns x(n) + z(n) where x(n) = x(n-1) + x(n-2) mod 2^32 and z(n) = 30903 * z(n-1) + carry mod 2^16. Pass all of the tests in Marsaglia’s “Diehard” battery of statistical tests.
Blog at WordPress.com.
Entries and comments feeds.
Leave a Reply