The mcint function uses a simple Monte Carlo algorithm to
estimate the value of an integral. The parameter n sets the
total number of evaluation points. The parameter max.y is the
maximum expected value of the range of function f. The
mcint2 provides Monte Carlo integration in two dimensions.