Re: [R] specify seed for Random Number Generator

From: Spencer Graves <spencer.graves_at_pdf.com>
Date: Tue 23 Aug 2005 - 14:11:15 EST

          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@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@pdf.com
www.pdf.com <http://www.pdf.com>
Tel:  408-938-4420
Fax: 408-280-7915

______________________________________________
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 Tue Aug 23 14:17:42 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 15:43:22 EST