Uniform sampling is working correctly.