chickadee » srfi-27 » make-uniform-random-integers

(make-uniform-random-integers [high: (HIGH #f)] [low: (LOW 0)] [precision: (PRECISION 1)] [source: (SOURCE (current-random-source))]) -> (-> integer)procedure

LOW, HIGH and PRECISION are integers.

SOURCE is a random-source.

HIGH, if not supplied, is the (- (random-source-maximum-range source) 1).

The generator returns integers in the range LOW .. HIGH with an index of PRECISION. Unlike a (random-integer) result negative integers are possible.

(current-random-integer) <> (make-uniform-random-integers). (current-random-integer) returns ((integer) -> integer). (make-uniform-random-integers) returns (() -> integer).