3839404142434445464748
for (long max: maxes) { UniformDistribution dist = new UniformDistribution(); dist.init(0, max, 1); for (int trial = 0; trial < trials; trial++) { long i = dist.choose(rng); assertTrue(i >= 0); assertTrue(i < max); } } }