Hello I?m a student from Spain. I couldn?t find something about R and I was asking if someone could tell me which generator of random numbers use "rnorm" and "runif". I think I have discovered that in runif they use the inversion method, but I don?t find any clue where they use the Super-duper algorithm or the Marsaglia one, as I have read. Thanks and sorry for my english. _________________________________________________________________ Deja tu CV y recibe ofertas personalizadas de trabajo en tu buz?n.
Have you looked at "?set.seed"? This provides some detail in R 1.8.1 for Windows. hope this helps. spencer graves p.d. No hay que desculparse por su ingl?s. Est? claro. Silvia Perez Martin wrote:> Hello > > I?m a student from Spain. I couldn?t find something about R and I was > asking if someone could tell me which generator of random numbers use > "rnorm" and "runif". I think I have discovered that in runif they use > the inversion method, but I don?t find any clue where they use the > Super-duper > algorithm or the Marsaglia one, as I have read. > > Thanks and sorry for my english. > > _________________________________________________________________ > Deja tu CV y recibe ofertas personalizadas de trabajo en tu buz?n. > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help
Take a look at the help for "RNGkind" as follows: ?RNGkind Ravi. ----- Original Message ----- From: Silvia Perez Martin <silviarf83 at hotmail.com> Date: Tuesday, December 16, 2003 12:45 pm Subject: [R] Random Numbers> Hello > > I?m a student from Spain. I couldn?t find something about R and I > was asking > if someone could tell me which generator of random numbers use > "rnorm" and > "runif". I think I have discovered that in runif they use the > inversion > method, but I don?t find any clue where they use the Super-duper > algorithm or the Marsaglia one, as I have read. > > Thanks and sorry for my english. > > _________________________________________________________________ > Deja tu CV y recibe ofertas personalizadas de trabajo en tu buz?n. > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help >
On Tue, 16 Dec 2003, Silvia Perez Martin wrote:> Hello > > I?m a student from Spain. I couldn?t find something about R and I was asking > if someone could tell me which generator of random numbers use "rnorm" and > "runif". I think I have discovered that in runif they use the inversion > method, but I don?t find any clue where they use the Super-duper > algorithm or the Marsaglia one, as I have read. >All the random number generators work by transforming a common stream of random 32-bit integers. The user can choose what generator to use for this common stream. The default is "Mersenne-Twister". ?RNGkind will tell you how to choose other generators. In addition, the user can choose how rnorm() transforms this stream of 32-bit numbers to the Normal distribution. This is also covered in ?RNGkind. The default is inversion. Finally, users can supply either their own generator for the stream of 32-bit numbers or for the transformation to a Normal distribution. -thomas