Random number generators discussion

Random number generators | www.agner.org

 
single message marsaglia multiply with carry - Andrew Nuss - 2007-12-20
 
marsaglia multiply with carry
Author:  Date: 2007-12-20 21:04
Hi,

I wish to use Marsaglia's multiply with carry method using the multiplier a = 2083801278. The purpose is a fast generator with decent period for a scripting language. I want to keep just a 64-bit value as seed, the hi 32 bits as carry. That's why I'm not using Mother of All. I read that the high bits of my uniform 32 bit result might not be so good, but I don't mind. What I wanted to verify is the principle that permits use of any pair of 32-bit x/32-bit carry other than both being zero.

Thanks,
Andy