0

I want to set any number as a seed.This is my R code.Is it correct?It is incorrect please give me a the R code for that. set.seed(45)

1 Answers1

0

That's it. After running this line, the following line with random components will produce the same results every time.

set.seed(10)
rnorm(10)

set.seed(10)
rnorm(10)
ErrorJordan
  • 611
  • 5
  • 15