Synopsis:
random x -- yields a random real number in the range 0 .. x.
See also:
Code:
-- ../../../Macaulay2/m2/integers.m2:74-78 random RR := RR => x -> ( if x <= 0. then ( error "expected a positive number" ); x * (randomint() / d))