JdkRNG implements IRandomNumberGenerator { @Override public int nextInt() { return random.nextInt(); } JdkRNG(Random random); static JdkRNG newRandom(); static JdkRNG newRandom(long seed); Random getRandom(); @Override double nextDouble(); @Override int nextInt(); @Override long nextLong(); @Override boolean nextBoolean(); @Override float nextFloat(); @Override int nextInt(int n); @Override JdkRNG synchronize();  }
@Test(expected = IllegalArgumentException.class) public void testNextIntNegativeBound() { createRNG().nextInt(-1); }