Warning: This is the manual of the legacy Guile 2.2 series. You may want to read the manual of the current stable series instead.
Next: SRFI-27 Random Sources, Up: SRFI-27 [Contents][Index]
Return a random number between zero (inclusive) and n (exclusive), using the default random source. The numbers returned have a uniform distribution.
Return a random number in (0,1), using the default random source. The numbers returned have a uniform distribution.
A random source from which random-integer
and random-real
have been derived using random-source-make-integers
and
random-source-make-reals
(see SRFI-27 Random Number Generators
for those procedures). Note that an assignment to
default-random-source
does not change random-integer
or
random-real
; it is also strongly recommended not to assign a new
value.