Random number generators discussion

Random number generators | www.agner.org

How is Mother-of-all compared to ran2?
Author: Agner Date: 2006-03-16 07:53
Mother-of-all is better than ran2. Mersenne Twister is generally regarded as the best one.

If you have a speed problem then you may update your Intel compiler to the latest version (the noncommercial Linux version is free) and enable the SSE2 instruction set. The Gnu compiler is also very good.

The warning for mersenne.cpp is not serious. The sign change was intended. Does the warning disappear if you change -1L to 0xFFFFFFFF ?

You should not get a floating point exception in ranrot. Do you have the right function prototype from randoma.h ?

 
thread How is Mother-of-all compared to ran2? new - Ngo Minh Toan - 2006-03-15
last replythread Warning message for mersenne.cpp new - Ngo Minh Toan - 2006-03-15
last replythread How is Mother-of-all compared to ran2? - Agner - 2006-03-16
last replythread How is Mother-of-all compared to ran2? new - Ngo Minh Toan - 2006-03-16
last reply How is Mother-of-all compared to ran2? new - Agner - 2006-03-18