Performs 1D Monte Carlo integration of a function f over [a, b]
Performs Multi-dimensional Monte Carlo integration of a function f over the bounding boxes defined by bounds (array of {min, max} tuples)
Runs a stochastic simulation N times and returns the results. Yields the run index to the block, which should return the outcome.