I want to generate 10000 random numbers uniformly distributed in the open interval (0, pi/2). Is there any difference between:

1) Generating 10000 random numbers in the open interval (0,1) and then multiplying the resulting vector by pi/2,

2) Generating the numbers directly in the interval (0, pi/2)?

I am using the function runif() in R.

Similar questions and discussions