mardi 27 septembre 2016

Generate uniform random variable in R when lower boundary is close to zero

When I run in R runif(100,max=0.1, min=exp(-10)), I get 100 uniformly distributed random variables between 0.1 and 0.0001. So, there is no random values between 0.0001 and the min value (min=exp(-10)). How to generate uniform random variables on the whole interval (between min and max values).




Aucun commentaire:

Enregistrer un commentaire