On Tue, 24 Apr 2007, gracezhang wrote:
Hi,
I failed to search for R package providing random number generator of Park
and Miller.
Anyone know any R package supporting this kind of function?
rng.lcg-function(x,p1=16807,p2=0,N=2147483647){(x*p1+p2)%%N}
Dave
--
Dr. David Forrest
[EMAIL
Hi,
I failed to search for R package providing random number generator of Park
and Miller.
Anyone know any R package supporting this kind of function?
Thanks,
Grace
--
View this message in context:
http://www.nabble.com/Random-Number-Generator-of-Park-and-Miller-tf3642535.html#a10172789
Sent
Hi,
I failed to search for R package providing random number generator of Park
and Miller.
Anyone know any R package supporting this kind of function?
Thanks,
Grace
--
View this message in context:
http://www.nabble.com/Random-Number-Generator-of-Park-and-Miller-tf3636501.html#a10154554
Sent
Hi,
I failed to search for R package providing random number generator of Park
and Miller.
Anyone know any R package supporting this kind of function?
Thanks,
Grace
--
View this message in context:
http://www.nabble.com/Random-Number-Generator-of-Park-and-Miller-tf3636502.html#a10154558
Sent
gracezhang wrote:
Hi,
I failed to search for R package providing random number generator of
Park and Miller.
Anyone know any R package supporting this kind of function?
I failed too.
However, here is the source code http://www.firstpr.com.au/dsp/rand31/
which can be either easily
By the way, AFAIK, R uses the Mersenne-Twister random number generator, which
has a much better reputation for producing numbers than any linear
congruential PRNG (the same url, http://www.firstpr.com.au/dsp/rand31/)
gracezhang wrote:
I failed to search for R package providing random number