Did someone know how to generate random numbers with a non-uniform density?
Use a uniform density RNG, and pass its result through a mapping function to convert to your desired density distribution.