hehe
randomSampling
approxAvg for both int and double