I don't know why but this is very hard to find on StackOverflow:
$ cabal install random
$ ghci
Prelude) import System.Random
Prelude System.Random) randomRIO (1, 100)
42
I don't know why but this is very hard to find on StackOverflow:
$ cabal install random
$ ghci
Prelude) import System.Random
Prelude System.Random) randomRIO (1, 100)
42