[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: |
Leo |
Subject: |
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 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.3.50 (Mac OS X 10.6.8) |
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