[R] Pseudo-random numbers between two numbers

guox at ucalgary.ca guox at ucalgary.ca
Tue Mar 10 23:40:10 CET 2009

I would like to generate pseudo-random numbers between two numbers using
R, up to a given distribution,
for instance, rnorm.
That is something like rnorm(HowMany,Min,Max,mean,sd) over

I am wondering if

dnorm(runif(HowMany, Min, Max), mean, sd)

is good. Any idea? Thanks.

More information about the R-help mailing list