RandomRIO Haskell

[Solved] RandomRIO Haskell | Haskell - Code Explorer | yomemimo.com
Question : randomRIO haskell

Answered by : afonso-silva

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

Source : https://hackage.haskell.org/package/random-1.2.1/docs/System-Random.html | Last Update : Mon, 17 Jan 22

Answers related to randomRIO haskell

Code Explorer Popular Question For Haskell