Skip to content

Instantly share code, notes, and snippets.

@ivanoats
Created January 13, 2016 17:21
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 ivanoats/f9f193c65f92a67d5811 to your computer and use it in GitHub Desktop.
Save ivanoats/f9f193c65f92a67d5811 to your computer and use it in GitHub Desktop.
how to win at powerball
import System.Random
main = do
gen <- getStdGen
putStr $ show $ take 5 (randomRs (1,69) gen)
putStr $ show $ take 1 (randomRs (1,26) gen)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment