[R] generate random number

Ragnhild Sørum rsoerum80 at hotmail.com
Tue Dec 2 17:04:20 CET 2003


Hi

I would like to generate some(ss) random numbers from a density distribution 
f(x).
In my case f(x) = a*exp(b*x),  ex. a=2, b=0.5,   and x is only defined 
between x1 and x2,  ex.  from -6 to -2.5.

Any suggestions? Can I use rexp?

Thanks,
Ragnhild




More information about the R-help mailing list