I'm looking for a convenient way to generate $\text{Beta}(2,2)$ random variables, using independent $\text{Uniform}(0,1)$ random variables and elementary functions. I'd prefer to avoid rejection or iterative methods.
The PDF is $6 x (1-x)$. The CDF is $x^2(3-2x)$.
I know of one method that seems a bit messy: $X_i\overset{iid}{\sim}\text{Uniform}(0,1)$ $\implies Y_i\equiv-\log(X_i)\overset{iid}{\sim}\text{Exp}(1)$ $\implies \frac{Y_1+Y_2}{Y_1+Y_2+Y_3+Y_4}\sim\text{Beta}(2,2)$. This is a bit inefficient, requiring four uniform samples per beta sample, and it uses logarithms.
The CDF doesn't have a convenient inverse, so an inverse CDF transform won't work either.
EDIT: The median of three $\text{Uniform}(0,1)$ random variables will also follow a $\text{Beta}(2,2)$.
Can anyone think of an elegant method to generate these?