mwc-random

乱数

使い方

import System.Random.MWC

main :: IO ()
main = do
  gen <- createSystemRandom
  randValue <- uniform gen :: IO Int
  print randValue

参考リソース

Last updated