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


View this message in rfc822 format

From: Stefan Kangas <stefan <at> marxist.se>
To: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Cc: Glenn Morris <rgm <at> gnu.org>, Leo <sdl.web <at> gmail.com>, 9103 <at> debbugs.gnu.org
Subject: bug#9103: 23.3.50; random* from cl does not support the whole range of integers
Date: Fri, 22 Oct 2021 11:58:14 -0400
Lars Magne Ingebrigtsen <larsi <at> gnus.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.

(That's `cl-random' these days.)

> and then make it into a floating point if it floats?

The Common Lisp version of `random' supports float and integer values
depending on what type its argument has.  I guess that's what
`cl-random' is based on.

I'm not sure if we can change `random' to do the same.  But if there is
a need for random floating point numbers, it does seem unfortunate that
we only have that functionality in CL-Lib.




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

Previous Next


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