[Jprogramming] generating random seed
Roger Hui
rhui000 at shaw.ca
Fri Jun 15 03:21:15 HKT 2007
Knuth's gb_flip and several other better RNGs
are available in J:
http://www.jsoftware.com/help/dictionary/d640.htm
For example, gb_flip has a period of _1+2^55
(3.6e16) but the Mersenne Twister has a period
of _1+2^19947 (4.32e6001).
----- Original Message -----
From: Eugene McDonnell <eemcd at mac.com>
Date: Thursday, June 14, 2007 11:34 am
Subject: Re: [Jprogramming] generating random seed
>
> On Jun 14, 2007, at 6:15 AM, Sherlock, Ric wrote:
>
> > the salt. For the case of the default RNG used by J, it seems
> that the
> > seed could be either an integer or a list of integers. My
> question is
> > what is a good way of coming up with that list of integers.
>
> You can find a fine random number generator, recommended by Donald
>
> Knuth, in my article in Vector 14.4 "A Newer Random Link
> Generator".
> However, since that there have been several even better generators.
More information about the Programming
mailing list