Subject: bug#9103: 23.3.50; random* from cl does not support the whole range of integers

From: Lars Magne Ingebrigtsen <[email-masked]>
Date: Sun, 11 Sep 2011 05:20:00 +0200

Glenn Morris <[email-masked]> writes:

> Glenn Morris wrote:
>
>> Why does random* even need to exist? What can it do that plain random
>> cannot?
>
> ...non-integer results, it seems.

`random*' ends with

(* (/ n '8388608e0) lim)

if LIM isn't an integer.  Anybody willing to hazard a guess why
8388608.0 was chosen?

And would it make sense to just replace it all with a call to `random',
and then make it into a floating point if it floats?

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/