📜  randomRIO haskell - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:21.478000             🧑  作者: Mango

代码示例1
randomRIO :: (Random a, MonadIO m) => (a, a) -> m a 
>>> randomRIO (2020, 2100) :: IO Int
2040
-- A variant of randomRM that uses the global pseudo-random number generator globalStdGen