Created
March 4, 2014 10:58
-
-
Save Nucleareal/9344336 to your computer and use it in GitHub Desktop.
誰か手伝ってくれ~~~~~~~~
This file contains hidden or 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 | |
| bbop :: RandomGen g => Int -> Int -> g -> String | |
| bbop n c gen | |
| = fmap (\x -> bbops !! x) $ take n $ randomRs (0, length bbops -1) gen where bbops = "ビビドレドオペレショ" | |
| {- ビビッドレッド・オペレーション | |
| 0 1 2 3 4 5 6 7 8 9 1011121314 | |
| -} | |
| main = do | |
| gen <- getStdGen | |
| putStrLn $ bbop 10 0 gen |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment