Skip to content

Instantly share code, notes, and snippets.

@Nucleareal
Created March 4, 2014 10:58
Show Gist options
  • Select an option

  • Save Nucleareal/9344336 to your computer and use it in GitHub Desktop.

Select an option

Save Nucleareal/9344336 to your computer and use it in GitHub Desktop.
誰か手伝ってくれ~~~~~~~~
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