Skip to content
Back to formatted view

Raw Message

Message-ID: <x24q9pmva6.fsf@turmalin.kubism.ku.dk>
Date: 2005-08-16T21:22:41Z
From: Peter Dalgaard
Subject: specify seed for Random Number Generator
In-Reply-To: <BAY102-F20D65AC2ABB73090330AEED3B00@phx.gbl>

"Dhiren DSouza" <dhiren22 at 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 at biostat.ku.dk)                  FAX: (+45) 35327907