Skip to content

Instantly share code, notes, and snippets.

@michaelgwelch
Created March 10, 2012 19:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaelgwelch/2012667 to your computer and use it in GitHub Desktop.
Save michaelgwelch/2012667 to your computer and use it in GitHub Desktop.
Easy way to generate a random number in ghci
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