Created
May 27, 2015 12:23
-
-
Save shigemk2/4de65f04d6d1dbcec2d3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import System.Random | |
main = do | |
-- グローバル乱数ジェネレータを初期化 | |
gen <- getStdGen | |
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