0

In the following process:

x <- c(1:10)
for(i in 1:20){
   y <- sample(x)
   print(y)
}

How do I retrieve the seed used at each step? (I don't want to pre-establish it). Is there something like "get.seed()"?

Peter O.
  • 32,158
  • 14
  • 82
  • 96
perep1972
  • 147
  • 1
  • 9

0 Answers0