Created
March 10, 2012 19:47
-
-
Save michaelgwelch/2012667 to your computer and use it in GitHub Desktop.
Easy way to generate a random number in ghci
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let rand = randomRIO (0,100); | |
-- or just type "randomRIO (lo, hi)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment