[R] generate random numbers subject to constraints

Paul Smith phhs80 at gmail.com
Wed Mar 26 20:50:04 CET 2008


On Wed, Mar 26, 2008 at 7:27 PM, Ala' Jaouni <ajaouni at gmail.com> wrote:
>  I failed to mention that the X values have to be positive and between 0 and 1.

Use Robert's method, and to do his step 1, use runif (?runif) to get
random numbers from the uniform distribution between 0 and 1.

Paul



More information about the R-help mailing list