Raydiant: Random generators » Multiply with carry 16

Leave a comment

Multiply with carry 16

Multiply with carry 16

Concatenation of following two 16-bit multiply with carry generators: x(n) = a*x(n-1)+carry mod 2^16 and y(n) = b*y(n-1)+carry mod 2^16. Number and carry packed within the same 32 bit integer. Pass all of the tests in Marsaglia’s “Diehard” battery of statistical tests.

Leave a Comment »

RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.
Entries and comments feeds.