unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefan@marxist.se>
To: Lars Magne Ingebrigtsen <larsi@gnus.org>
Cc: Glenn Morris <rgm@gnu.org>, Leo <sdl.web@gmail.com>,
	9103@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	[thread overview]
Message-ID: <CADwFkm=Pu5_+GRtbapwmjiovbcJEpjN_0iTu7_iX72JHXVUBzA@mail.gmail.com> (raw)
In-Reply-To: <m31uvn22an.fsf@stories.gnus.org> (Lars Magne Ingebrigtsen's message of "Sun, 11 Sep 2011 05:20:00 +0200")

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.





  parent reply	other threads:[~2021-10-22 15:58 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-17  4:03 bug#9103: 23.3.50; random* from cl does not support the whole range of integers Leo
2011-07-18 21:56 ` Glenn Morris
2011-07-18 21:58   ` Glenn Morris
2011-07-19  1:21     ` Leo
2011-07-19  1:28       ` Juanma Barranquero
2011-09-11  3:20     ` Lars Magne Ingebrigtsen
2011-09-11  7:44       ` Andreas Schwab
2021-10-22 15:58       ` Stefan Kangas [this message]
2020-11-19  5:19 ` Stefan Kangas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CADwFkm=Pu5_+GRtbapwmjiovbcJEpjN_0iTu7_iX72JHXVUBzA@mail.gmail.com' \
    --to=stefan@marxist.se \
    --cc=9103@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    --cc=rgm@gnu.org \
    --cc=sdl.web@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).