public void randomBigIntegerDistributionTest() {
BigInteger start = new BigInteger("2147483648"), end = new BigInteger("2147483649");
RandomFunction randomFunction = new RandomFunction(BigInteger.class, new Range(start, end));
Set<BigInteger> values = new HashSet<BigInteger>();
for (int i=0; i<10; i++) {
values.add((BigInteger) randomFunction.generateValue());
}
assertTrue("Generated at least one equal to start", values.contains(start));
assertTrue("Generated at least one equal to end", values.contains(end));
}