@Test public void testInt() { final MersenneTwisterGenerateRandom rnd = new MersenneTwisterGenerateRandom(1); for (final int aINT_TEST : INT_TEST) { final int g = rnd.nextInt(); assertEquals(g, aINT_TEST); } }
@Override public int nextInt() { return (int) nextLong(); }
MersenneTwisterGenerateRandom extends AbstractBoxMuller { @Override public int nextInt() { return (int) nextLong(); } }
MersenneTwisterGenerateRandom extends AbstractBoxMuller { @Override public int nextInt() { return (int) nextLong(); } MersenneTwisterGenerateRandom();  MersenneTwisterGenerateRandom(final long seed);  MersenneTwisterGenerateRandom(final int[] array); }
MersenneTwisterGenerateRandom extends AbstractBoxMuller { @Override public int nextInt() { return (int) nextLong(); } MersenneTwisterGenerateRandom();  MersenneTwisterGenerateRandom(final long seed);  MersenneTwisterGenerateRandom(final int[] array); void setSeed(final long seed); void setSeed(final int[] array); @Override double nextDouble(); long nextLong(); @Override boolean nextBoolean(); @Override float nextFloat(); @Override int nextInt(); }
MersenneTwisterGenerateRandom extends AbstractBoxMuller { @Override public int nextInt() { return (int) nextLong(); } MersenneTwisterGenerateRandom();  MersenneTwisterGenerateRandom(final long seed);  MersenneTwisterGenerateRandom(final int[] array); void setSeed(final long seed); void setSeed(final int[] array); @Override double nextDouble(); long nextLong(); @Override boolean nextBoolean(); @Override float nextFloat(); @Override int nextInt();  }