3 ms·
For those interested, one can get from a uniform distribution to pretty much any defined statistical distribution using just the uniform random number generator
by ImaCake 6y ago
For those interested, one can get from a uniform distribution to pretty much any defined statistical distribution using just the uniform random number generator and the inverse cumulative distribution function of the desired random distribution. A useful trick for non-standard distributions with no function available in your prefered language.
Example from matlab: https://www.mathworks.com/help/stats/generate-random-numbers-using-the-uniform-distribution-inversion-method.html https://www.mathworks.com/help/stats/generate-random-numbers...