all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Magne Ingebrigtsen <larsi@gnus.org>
To: Glenn Morris <rgm@gnu.org>
Cc: 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: Sun, 11 Sep 2011 05:20:00 +0200	[thread overview]
Message-ID: <m31uvn22an.fsf@stories.gnus.org> (raw)
In-Reply-To: <0i1uxnb69f.fsf@fencepost.gnu.org> (Glenn Morris's message of "Mon, 18 Jul 2011 17:58:36 -0400")

Glenn Morris <rgm@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/





  parent reply	other threads:[~2011-09-11  3:20 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 [this message]
2011-09-11  7:44       ` Andreas Schwab
2021-10-22 15:58       ` Stefan Kangas
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

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

  git send-email \
    --in-reply-to=m31uvn22an.fsf@stories.gnus.org \
    --to=larsi@gnus.org \
    --cc=9103@debbugs.gnu.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.