Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: