[Haskell-beginners] Re: To use random number monad inside function

Heinrich Apfelmus apfelmus at quantentunnel.de
Wed Jan 28 05:37:31 EST 2009


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



More information about the Beginners mailing list