Skip to content
Prev 42458 / 398506 Next

runif and sample with reproducibility

Hallo

I think I have seen an answer to it but did not search for it.

set.seed() with sample() is perfectly reprodicble for me (well, I 
tried it only three times :-)
[1]  8 93 38 14 23 51 86 31 75 34
[1]  8 93 38 14 23 51 86 31 75 34
[1]  8 93 38 14 23 51 86 31 75 34
 
I suspect you called "set seed" only once.

Cheers
Petr
On 5 Jan 2004 at 13:07, Eric ESPOSITO wrote:

            
Petr Pikal
petr.pikal at precheza.cz