Skip to content

Instantly share code, notes, and snippets.

@frozencemetery
Created April 17, 2013 04:06
Show Gist options
  • Save frozencemetery/5401719 to your computer and use it in GitHub Desktop.
Save frozencemetery/5401719 to your computer and use it in GitHub Desktop.
A deterministic number generator (written in Haskell)
main = do putStrLn "How many digits do you want?"
nstr <- getLine
putStrLn $ take (read nstr) $ cycle "1"
main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment