[Haskell-beginners] randmomR produces only even values

Andrew Bernard andrew.bernard at gmail.com
Sun Nov 1 02:24:07 UTC 2015

According to the package documentation for System.Random:

This implementation uses the Portable Combined Generator of L'Ecuyer [System.Random] for 32-bit computers, transliterated by Lennart Augustsson.

The paper in question is given as:

Pierre L'Ecuyer, /Efficient and portable combined random number generators/, Comm ACM, 31(6), Jun 1988, pp742-749

Does anybody have a copy of this paper?

The use of an incrementing list of integers to seed each generation is definitely unusual, as Lyndon has pointed out, and is likely to be the root of the observed behaviour. Having the paper in question would probably clarify this.


More information about the Beginners mailing list