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 #14 received at 9103 <at> debbugs.gnu.org (full text, mbox):

From: Leo <sdl.web <at> gmail.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 9103 <at> debbugs.gnu.org
Subject: Re: bug#9103: 23.3.50;
	random* from cl does not support the whole range of integers
Date: Tue, 19 Jul 2011 09:21:32 +0800
On 2011-07-19 05:58 +0800, Glenn Morris wrote:
> Glenn Morris wrote:
>
>> Why does random* even need to exist? What can it do that plain random
>> cannot?
>
> ...non-integer results, it seems.

We need to extend plain random to support random-states. I plan to do it
once the random module in gnulib is usable.

Another option is to use Mersenne Twister PRNG, which I have in my local
tree (patch: http://paste.pocoo.org/show/ZYhLUPeXlkj405100KX4/). The
files mt19937.[ch] are from its authors'. Do you know if that can be
included in Emacs?

Leo




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.