r/Python•
arsplayer

Getting random numbers from a distribution

Hi, if I want random numbers to be distributed according to w(x) = x**-0.5, how do I do this?

Needs to be so that if I use f(x) with x the uniform distribution, i'll get something according to x**-0.5?

Thanks in advance

Posted Aug 29, 2016, 11:04 PM UTC

24
Loading comments…