乱数
mwc-random on Hackage
mwc-random on GitHub
import System.Random.MWC main :: IO () main = do gen <- createSystemRandom randValue <- uniform gen :: IO Int print randValue
*Main> main 340898416511166672 *Main> main -7687059258685427149
Haskell System.Random.MWCの使い方を随分と詳細にまとめた(初心者向け)
Last updated 5 years ago