@Test public void testIntRange() { final LinearCongruentialRandom rnd = new LinearCongruentialRandom(1); for (final int aINT_RANGE_TEST : INT_RANGE_TEST) { final int g = rnd.nextInt(0, 10); assertEquals(g, aINT_RANGE_TEST); } }
@Override public int nextInt() { return (int) nextLong(); }
LinearCongruentialRandom extends AbstractBoxMuller { @Override public int nextInt() { return (int) nextLong(); } }
LinearCongruentialRandom extends AbstractBoxMuller { @Override public int nextInt() { return (int) nextLong(); } LinearCongruentialRandom(final long theSeed);  LinearCongruentialRandom();  LinearCongruentialRandom(final long theModulus,
                                    final long theMultiplier, final long theIncrement,
                                    final long theSeed); }
LinearCongruentialRandom extends AbstractBoxMuller { @Override public int nextInt() { return (int) nextLong(); } LinearCongruentialRandom(final long theSeed);  LinearCongruentialRandom();  LinearCongruentialRandom(final long theModulus,
                                    final long theMultiplier, final long theIncrement,
                                    final long theSeed); final long getIncrement(); final long getModulus(); final long getMultiplier(); final long getSeed(); @Override final double nextDouble(); @Override final long nextLong(); @Override boolean nextBoolean(); @Override float nextFloat(); @Override int nextInt(); }
LinearCongruentialRandom extends AbstractBoxMuller { @Override public int nextInt() { return (int) nextLong(); } LinearCongruentialRandom(final long theSeed);  LinearCongruentialRandom();  LinearCongruentialRandom(final long theModulus,
                                    final long theMultiplier, final long theIncrement,
                                    final long theSeed); final long getIncrement(); final long getModulus(); final long getMultiplier(); final long getSeed(); @Override final double nextDouble(); @Override final long nextLong(); @Override boolean nextBoolean(); @Override float nextFloat(); @Override int nextInt(); static final long DEFAULT_MOD1; static final long DEFAULT_MOD2; static final long DEFAULT_MULT; static final long DEFAULT_INC; static final long MAX_RAND; }