Random number generators discussion

Random number generators | www.agner.org

the math behind mother
Author:  Date: 2004-11-26 06:02
Thanks for the explanation.
I just want you to know that division is very slow, even on modern computers. The modulo computations require division if the modulus is not a power of 2. That's why we prefer a modulus which is a power of 2. Best is 2^16, 2^32, or 2^64 because it fits a computer word size so all computations are modulo the word size.
 
thread the math behind mother new - Perderabo - 2004-11-24
last replythread the math behind mother new - Agner - 2004-11-25
last replythread the math behind mother new - Perderabo - 2004-11-25
last replythread the math behind mother - Agner - 2004-11-26
last reply the math behind mother new - Perderabo - 2004-12-18