Beta probability distribution function.
Beta(g,alpha1,alpha2)
Generates a random variate following the Beta probability distribution, with parameters alpha1 and alpha2.
The pseudo-code algorithm used for this distribution is:
1. Generate Y1 as gamma(alpha1,1), and Y2 as gamma(alpha2,1) independent from Y1.
2. Return x = Y1/(Y1+Y2)
(u,g) := Beta(g,0.6,0.4);
function Beta extends Var; end Beta;