Given the following pdf:
\begin{equation*}
f(x) = \begin{cases}
\frac{3}{4}\sqrt{x+1}, & x \in [-1, 0) \\
1 - x, & x \in [0, 1)
\end{cases}
\end{equation*}
Use the inverse method to generate a single random number, using R = 0.57
? 0.0726
? 0.0626
? 0.0826
? 0.0526