@Test public void nextLongMinMaxCompatibility() { final Random random1 = new Random(123); final Random random2 = new Random(123); final int origin = 100; final int bound = 100_000_000; random1.longs(origin, bound).limit(1000).forEach(i -> { Assert.assertEquals(i, PRNG.nextLong(origin, bound, random2)); }); }
public long nextLong(final long origin, final long bound) { return nextLong(origin, bound, this); }
PRNG extends Random { public long nextLong(final long origin, final long bound) { return nextLong(origin, bound, this); } }
PRNG extends Random { public long nextLong(final long origin, final long bound) { return nextLong(origin, bound, this); } protected  PRNG(final long seed); protected  PRNG(); }
PRNG extends Random { public long nextLong(final long origin, final long bound) { return nextLong(origin, bound, this); } protected  PRNG(final long seed); protected  PRNG(); int nextInt(final int origin, final int bound); long nextLong(final long origin, final long bound); long nextLong(final long n); float nextFloat(final float origin, final float bound); double nextDouble(final double origin, final double bound); static int nextInt(
		final int origin, final int bound,
		final Random random
	); static long nextLong(
		final long origin, final long bound,
		final Random random
	); static long nextLong(final long n, final Random random); static float nextFloat(
		final float origin, final float bound,
		final Random random
	); static double nextDouble(
		final double origin, final double bound,
		final Random random
	); static byte[] seedBytes(final int length); static byte[] seedBytes(final byte[] seed); static byte[] seedBytes(final long seed, final byte[] seedBytes); static byte[] seedBytes(final long seed, final int length); static long seed(); static long seed(final long base); }
PRNG extends Random { public long nextLong(final long origin, final long bound) { return nextLong(origin, bound, this); } protected  PRNG(final long seed); protected  PRNG(); int nextInt(final int origin, final int bound); long nextLong(final long origin, final long bound); long nextLong(final long n); float nextFloat(final float origin, final float bound); double nextDouble(final double origin, final double bound); static int nextInt(
		final int origin, final int bound,
		final Random random
	); static long nextLong(
		final long origin, final long bound,
		final Random random
	); static long nextLong(final long n, final Random random); static float nextFloat(
		final float origin, final float bound,
		final Random random
	); static double nextDouble(
		final double origin, final double bound,
		final Random random
	); static byte[] seedBytes(final int length); static byte[] seedBytes(final byte[] seed); static byte[] seedBytes(final long seed, final byte[] seedBytes); static byte[] seedBytes(final long seed, final int length); static long seed(); static long seed(final long base);  }