Closed richelbilderbeek closed 6 years ago
Run this code:
# If a random number if drawn with one seed, # how long until it is drawn by differerently seeded # RNG? set.seed(2) value <- runif(n = 1) set.seed(1) i <- 0 while (value != runif(n = 1)) { i <- i + 1 } print(i)
Results:
Conclusion: seeds are independent
Nope.
Run this code:
Results:
Conclusion: seeds are independent