[R] Random Number Generator of Park and Miller
David Forrest
drf5n at maplepark.com
Wed Apr 25 15:54:48 CEST 2007
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
drf at vims.edu (804)684-7900w
drf5n at maplepark.com (804)642-0662h
http://maplepark.com/~drf5n/
More information about the R-help
mailing list