Re: [R] specify seed for Random Number Generator

From: Peter Dalgaard <p.dalgaard_at_biostat.ku.dk>
Date: Wed 17 Aug 2005 - 07:22:41 EST

"Dhiren DSouza" <dhiren22@hotmail.com> writes:

> I need to generate 100 I.I.D samples from an exponential distribution. I
> use rexp(100,parameter). Is there anyway to specify a seed to determine the
> first input for the uniform random number generator used to generate these
> exponentials?

Try set.seed()

-- 
   O__  ---- Peter Dalgaard             ุster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)                  FAX: (+45) 35327907

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Wed Aug 17 07:30:49 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 15:25:05 EST