Send Beginners mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."
Today's Topics:
1. Re: randmomR produces only even values (Andrew Bernard)
----------------------------------------------------------------------
Message: 1
Date: Sun, 1 Nov 2015 13:24:07 +1100
From: Andrew Bernard <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] randmomR produces only even values
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii
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.
Andrew
------------------------------
Subject: Digest Footer
_______________________________________________
Beginners mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
------------------------------
End of Beginners Digest, Vol 89, Issue 1
****************************************