	@Test
	public void testRandom() {

		BigInteger[] bigs = BigIntegers.random(
				BigInteger.ZERO,
				BigInteger.TEN,
				new Random(),
				1000,
				4);
		Set<BigInteger> numerals = new HashSet<BigInteger>(Arrays.asList(bigs));
		Set<BigInteger> expected = new HashSet<BigInteger>(Arrays.asList(
				BigInteger.valueOf(0),
				BigInteger.valueOf(1),
				BigInteger.valueOf(2),
				BigInteger.valueOf(3),
				BigInteger.valueOf(4),
				BigInteger.valueOf(5),
				BigInteger.valueOf(6),
				BigInteger.valueOf(7),
				BigInteger.valueOf(8),
				BigInteger.valueOf(9)
				));
		Assert.assertEquals(expected, numerals);
	}