Call fun a numSamples number of times, and return a distribution representing the result.
See Implementation
Call fun a numSamples number of times, and return a distribution representing the result.