RandomGen, mkStdGen

Frederik Eaton frederik at a5.repetae.net
Fri Jan 19 14:52:37 EST 2007

On Fri, Jan 19, 2007 at 05:07:04PM +0000, Ian Lynagh wrote:
> It's not clear to me that this really makes sense in general.
> It's hard to say without knowing what you're doing, but I think you'd be
> better off just calling mkMyRandomGen, perhaps even taking a tuple
> rather than a list so you know you have the right number of bits.
> Incidentally, you sound like you want Int32 rather than Int; Int is only
> guaranteed to be 29 bits, and today may be either 32 or 64 bits
> depending on what platform you are on.

Thanks for the reply. I think that you have perhaps misunderstood my
argument, but on trying to explain it a second time I came to the
conclusion that it indeed doesn't make sense, which of course may have
been a contributing factor to its not being understood.

Best wishes,



More information about the Libraries mailing list