chickadee » srfi-194 » make-random-integer-generator

make-random-integer-generator lower-bound upper-boundprocedure

Returns a generator of exact integers between lower-bound (inclusive) and upper-bound (exclusive) uniformly. It is an error if the bounds are not exact integers or if the specified interval is empty.

Chicken note: this is implemented using make-uniform-random-integers from srfi-27. Note that make-uniform-random-integers takes two inclusive bounds, which is different from this interface.