[R] specify seed for Random Number Generator

Spencer Graves spencer.graves at pdf.com
Tue Aug 23 06:11:15 CEST 2005


	  Have you considered "set.seed"?  This was listed with the first hit 
for 'RSiteSearch("random number seed")'.

	  spencer graves

Dhiren DSouza wrote:

> 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?
> 
> -Dhiren
> 
> ______________________________________________
> R-help at 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

-- 
Spencer Graves, PhD
Senior Development Engineer
PDF Solutions, Inc.
333 West San Carlos Street Suite 700
San Jose, CA 95110, USA

spencer.graves at pdf.com
www.pdf.com <http://www.pdf.com>
Tel:  408-938-4420
Fax: 408-280-7915




More information about the R-help mailing list