(Reproducible example added.)
I am little bit confused about rnorm function.
I expected mean(rnorm(100,mean=0,sd=1))
to be 0; and sd(rnorm(100,mean=0,sd=1))
to be 1. But gave different results. Where am I wrong?
Reproducible Example:
mean(rnorm(100,mean=0,sd=1))
# [1] 0.07872548
sd(rnorm(100,mean=0,sd=1))
# [1] 1.079348
Any help is greatly appreciated.