[Haskell-cafe] Convert IO Int to Int

Henning Thielemann lemming at henning-thielemann.de
Tue Jun 9 10:06:01 EDT 2009


On Tue, 9 Jun 2009, ptrash wrote:

> I am using the System.Random method randomRIO. How can I convert its output
> to an Int?

in general:
http://haskell.org/haskellwiki/How_to_get_rid_of_IO

about randomIO:
http://haskell.org/haskellwiki/Avoiding_IO#State_monad


More information about the Haskell-Cafe mailing list