[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#9103: 23.3.50; random* from cl does not support the whole range of i
From: |
Stefan Kangas |
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 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Lars Magne Ingebrigtsen <larsi@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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#9103: 23.3.50; random* from cl does not support the whole range of integers,
Stefan Kangas <=