Skip to content

Commit

Permalink
Merge pull request haskell#53 from idontgetoutmuch/uniform-instead-of…
Browse files Browse the repository at this point in the history
…-randomM

Use uniform instead of randomM in example
  • Loading branch information
idontgetoutmuch authored Mar 27, 2020
2 parents 38d38ab + afccab0 commit 937d958
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion System/Random.hs
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ runPrimGenST_ g action = fst $ runPrimGenST g action
-- | Functions like 'runPrimGenIO' are necessary for example if you
-- wish to write a function like
--
-- >>> let ioGen gen = withBinaryFile "foo.txt" WriteMode $ \h -> ((randomM gen) :: IO Word32) >>= (hPutStr h . show)
-- >>> let ioGen gen = withBinaryFile "foo.txt" WriteMode $ \h -> ((uniform gen) :: IO Word32) >>= (hPutStr h . show)
--
-- and then run it
--
Expand Down

0 comments on commit 937d958

Please sign in to comment.