When loading the .RData file, the same random numbers are generated every time. For example, try the following: (Enter them in the terminal)
rm(list=ls())
x=10
save.image("samplefile.RData")
Now try this:
rm(list=ls())
load("samplefile.RData")
print(runif(n=100,min=0,max=100))
Can anyone please explain?
Thanks.
source
share