Algorithms For Stochastic Function Evaluation