Given the cartesian coordinates of three vertices of a triangle $P_1$, $P_2$, $P_3$ I know (have simulated) that I get randomly distributed points by using this protocol:
$s=\text{rand}(0,1)\quad t=\sqrt{\text{rand}(0,1)}$
$P = (1-t)\cdot P_1 + t\cdot\left( (1-s)\cdot P_2 + s\cdot P_3\right )$
where $\text{rand}()$ is the uniform random number generator.
Can someone explain why this works?
Intuitively, this seems like applying the lever rule on the edge between one pair of points, say, $P_2$ & $P_3$ to get a intermediate point $P'$ & then a second lever rule between $P'$ and $P_1$.
What I don't get is why the second lever is drawn from a square root of the first uniform distribution.