Can anyone propose fast and efficient random number generator that would produce a nonlinearly decreasing values in a given range, in R? Values should first decrease fast and then gradually slower. Shape-wise this could look like:
plot(sort(rexp(100, 0.1), decreasing=TRUE))
Many thanks!
Aucun commentaire:
Enregistrer un commentaire