Skip to content

Instantly share code, notes, and snippets.

@shigemk2
Created May 27, 2015 12:26
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 shigemk2/0561fb4658edbcbf0d2f to your computer and use it in GitHub Desktop.
Save shigemk2/0561fb4658edbcbf0d2f to your computer and use it in GitHub Desktop.
import System.Random
main = do
gen <- getStdGen
putStrLn $ take 20 (randomRs ('a','z') gen)
gen' <- newStdGen
putStr $ take 20 (randomRs ('a','z') gen')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment