Suppose we have a program that takes as input a number $x$ on the real interval $[0,1]$ and outputs $f(x)$ for some bounded function $f$ taking on values in the range $[1, b]$. We want to estimate
$$
\int_{x=0}^{1} f(x) d x
$$
Assume that we have a random number generator that can generate independent uniform random variables $X_{1}, X_{2}, \ldots$. Show that $$
\sum_{i=1}^{m} \frac{f\left(X_{i}\right)}{m}
$$
gives an ( $\varepsilon, \delta$ )-approximation for the integral for a suitable value of $m$.