Subject: bug#9103: 23.3.50; random* from cl does not support the whole range of integers

From: Leo <[email-masked]>
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