[Haskell-beginners] Randomness woes

Erlend Hamberg ehamberg at gmail.com
Mon Jan 11 12:25:12 EST 2010

On Sunday 10. January 2010 21.58.02 Gökhan San wrote:
> Though, I didn't quite get why you are explicitly calling 'evalRand'
> instead of utilizing MonadRandom.

Because of a misunderstanding on my part. I changed all the code as you 
suggested and now it's much nicer.

> Here, you're generating both parents using the same random generator,
> hence, parents are always identical.

D'oh. That explains it. Thanks! :)

Erlend Hamberg
“Everything will be ok in the end. If its not ok, its not the end.”
45C3 E2E7 86CA ADB7 8DAD 51E7 3A1A F085 AD3B CF19
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://www.haskell.org/pipermail/beginners/attachments/20100111/4304f2d4/attachment-0001.bin

More information about the Beginners mailing list