More general Monte Carlo integration that works with any one variable function.