[R] runif and sample with reproducibility

Eric ESPOSITO eric.esposito at gazdefrance.com
Mon Dec 22 10:51:44 CET 2003


Hello,
I would like to sample a population but the result needs to be
reproducible, using 'runif' or 'sample' is the good way to do it but I
can't manage to make the results reproducible even with the 'set.seed'
function.
My aim is that th call to 'sample(1:100,10)' gives always the same result,
how can I do that?
Thanks!

Eric Esposito




More information about the R-help mailing list