Intermediate R
Q54 / 100

What is the purpose of "set.seed(n)" in R?

Correct! Well done.

Incorrect.

The correct answer is B) To initialize the random number generator so that random results are reproducible

B

Correct Answer

To initialize the random number generator so that random results are reproducible

Explanation

set.seed() fixes the state of R's pseudo-random number generator so that code involving randomness produces the same results each run.

Progress
54/100