chickadee » random-bsd » random-integer

random-integer Nprocedure

Return a random integer in the range 0 .. N-1, where N is a fixnum or an integer flonum.

When N is a fixnum, this is equivalent to random-fixnum.

Otherwise, the result is returned as an integer flonum with 52 bits of precision. No attempt is made to coerce the result to an exact number.