A quantity $X$ is compute by the following method:
a.) Generate two independent uniform random variables $u$, $v$.
b.) If $u^2 + v^2 \geq 1$, return to step $1$. Otherwise set $X = u$.
Find the c.d.f $F(x)$ for $X$. How many times will step $1$ be performed.
Hint: Draw a quarter of a unit circle, inside a unit circle. Pick an arbitrary $x$ on the $x$-axis. Find the probability that $\mathbb{P}\{X\leq x\}$ using geometric arguments via areas.
THoughts: drawing a quarter of a unit circle inside a unit circle then picking an arbitrary $x$ then $$P\{X\leq x\} = \frac{x}{\pi}$$ But I don't think that is right I am a bit lost on this problem. Any suggestions are greatly appreciated.