diff --git a/basis/random/random.factor b/basis/random/random.factor index cba194b399..2a1f90c0ff 100644 --- a/basis/random/random.factor +++ b/basis/random/random.factor @@ -96,8 +96,8 @@ ERROR: too-many-samples seq n ; secure-random-generator get swap with-random ; inline : uniform-random-float ( min max -- n ) - 4 random-bytes underlying>> uint deref >float - 4 random-bytes underlying>> uint deref >float + 4 random-bytes uint deref >float + 4 random-bytes uint deref >float 2.0 32 ^ * + [ over - 2.0 -64 ^ * ] dip * + ; inline