09-01-2013, 11:00 AM
|
:pluffy:
|
Join Date: Feb 2002
Location: Sweden
Posts: 20,000
|
|
Quote:
Originally Posted by Loriel
wow i'm bad with statistics. apparently you can transform your rand()'s uniform distribution into a desired distribution via the latter's quantile function which is the inverse of the cumulative distribution function which is the integral of the probability density function and you could pick something like 2*(1-x) as your density function (for 0<=x<1, i guess the idea is that it's normalized).
|
wat |
|
|