GNU bug report logs - #9103
23.3.50; random* from cl does not support the whole range of integers

Previous Next

Package: emacs;

Reported by: Leo <sdl.web <at> gmail.com>

Date: Sun, 17 Jul 2011 04:04:01 UTC

Severity: minor

Found in versions 28.0.50, 23.3.50

Full log


Message #20 received at 9103 <at> debbugs.gnu.org (full text, mbox):

From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
To: Glenn Morris <rgm <at> gnu.org>
Cc: Leo <sdl.web <at> gmail.com>, 9103 <at> debbugs.gnu.org
Subject: Re: bug#9103: 23.3.50;
	random* from cl does not support the whole range of integers
Date: Sun, 11 Sep 2011 05:20:00 +0200
Glenn Morris <rgm <at> gnu.org> 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/




This bug report was last modified 3 years and 234 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.