What can I do to compel R
to give me a sample less than 20, such that the sample will have mean = 0 and variance = var
.
MWE
rnorm(20, mean=0, sd=1)
As the sample size gets larger, the sample gets closer to normal. How then can I make R
to give me a sample of n < 20
with a mean equal to zero and variance equal to whatever I specify?