We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64c52a5 commit 67e12bfCopy full SHA for 67e12bf
src/System/Random.hs
@@ -298,10 +298,10 @@ instance Random Char
298
instance Random Bool
299
instance Random Double where
300
randomR r g = runStateGen g (uniformRM r)
301
- random g = runStateGen g (uniformRM (0, 1))
+ random g = runStateGen g uniformDouble01M
302
instance Random Float where
303
304
+ random g = runStateGen g uniformFloat01M
305
306
-------------------------------------------------------------------------------
307
-- Global pseudo-random number generator
0 commit comments