
28 Jan
2009
28 Jan
'09
5:37 a.m.
Erick González wrote:
Hi:
Haskell' s way of random number generation is strange to me, but I know how to do that. I' d like to know how can I call random numbers generated on the screen inside a classic function. I mean, I need to know the way of calling random numbers (one different every time that I run) inside a function. Please, Could anybody help me? Thanks
Section 3.1 of http://en.wikibooks.org/wiki/Haskell/Understanding_monads explains how to work with random numbers in Haskell. Regards, apfelmus -- http://apfelmus.nfshost.com