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)
Asked
Active
Viewed 52 times
0

hasini ishara
- 59
- 8
1 Answers
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