Dear everyone! Since I saved the workspace-image I get the same row of random-numbers everytime I run R. How can I make the random-numbers random again? Thank you in advance!
"Mag. Ferri Leberl" <ferri.leberl at gmx.at> writes:> Dear everyone! > Since I saved the workspace-image I get the same row of random-numbers > everytime I run R. How can I make the random-numbers random again? > Thank you in advance!By not saving the seed. (Get rid of .Random.seed, see ?set.seed for more info.) -- 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
?.Random.seed says '.Random.seed' is an integer vector, containing the random number generator (RNG) *state* for random number generation in R. It can be saved and restored, but should not be altered by the user. so just remove it. The behaviour is intentional. On Tue, 21 Nov 2006, Mag. Ferri Leberl wrote:> Since I saved the workspace-image I get the same row of random-numbers > everytime I run R. How can I make the random-numbers random again?-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595