Skip to content

Instantly share code, notes, and snippets.

@MiyamonY
Created February 27, 2015 11:23
Show Gist options
  • Save MiyamonY/5bf4bcb59b99f83189e4 to your computer and use it in GitHub Desktop.
Save MiyamonY/5bf4bcb59b99f83189e4 to your computer and use it in GitHub Desktop.
import System.Random
main :: IO ()
main = do
gen <- getStdGen
putStrLn $ take 20 $ randomRs ('a', 'z') gen
gen' <- newStdGen
putStrLn $ take 20 $ randomRs ('a', 'z') gen'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment