You are on page 1of 1

N<-100000

sampling.dist<-numeric(N)
for ( i in 1:N) { x<-rnorm(1000)
sampling.dist[i]<-median(x)}
hist(sampling.dist)

You might also like