set.seed(4)
how.many.random.numbers.do.you.want<-100
what.is.the.approx.mean.of.these.numbers.supposed.to.be<-5 # default=0
what.is.the.approx.standarddeviation.of.these.numbers.supposed.to.be<-2
# default=1
random.numbers<-rnorm(how.many.random.numbers.do.you.want,
what.is.the.approx.mean.of.these.numbers.supposed.to.be,
what.is.the.approx.standarddeviation.of.these.numbers.supposed.to.be)
hist(random.numbers) # looks kinda normal
mean(random.numbers) # close to 5
sd(random.numbers) # close to 2
HTH,
STG
--
Stefan Th. Gries
-----------------------------------------------
University of California, Santa Barbara
http://www.linguistics.ucsb.edu/faculty/stgries
-----------------------------------------------