ExactSampling: risk evaluation using exact resampling methods