
9 Jun
2009
9 Jun
'09
10:33 a.m.
ptrash wrote:
Hi,
I am using the System.Random method randomRIO. How can I convert its output to an Int?
Thanks...
You cannot [1], you should read up on monads and I/O in Haskell, for example http://haskell.org/haskellwiki/IO_inside [1] Yes, you can, but no, you don't want to. Regards, -- Jochem Berndsen | jochem@functor.nl GPG: 0xE6FABFAB