made statistic.randomSample more efficient, added MonteCarlo integral approximation method