random-source-0.3.0.8: Generic basis for random number generators
Safe HaskellNone
LanguageHaskell98

Data.Random.Source.IO

Description

For convenience, this module defines an instance of MonadRandom for the IO monad. On Windows it uses Data.Random.Source.MWC (or Data.Random.Source.StdGen on older versions of GHC where the mwc-random package doesn't build) and on other platforms it uses Data.Random.Source.DevRandom.

Orphan instances

MonadRandom IO Source # 
Instance details

Methods

getRandomPrim :: Prim t -> IO t Source #

getRandomWord8 :: IO Word8 Source #

getRandomWord16 :: IO Word16 Source #

getRandomWord32 :: IO Word32 Source #

getRandomWord64 :: IO Word64 Source #

getRandomDouble :: IO Double Source #

getRandomNByteInteger :: Int -> IO Integer Source #