Numerical integration using the Monte Carlo method