Re: [R] Random Number Generator of Park and Miller

2007-04-25 Thread David Forrest
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

[R] Random Number Generator of Park and Miller

2007-04-24 Thread gracezhang
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

[R] Random Number Generator of Park and Miller

2007-04-23 Thread gracezhang
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

[R] Random Number Generator of Park and Miller

2007-04-23 Thread gracezhang
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

Re: [R] Random Number Generator of Park and Miller

2007-04-23 Thread Vladimir Eremeev
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

Re: [R] Random Number Generator of Park and Miller

2007-04-23 Thread Vladimir Eremeev
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