@Test public void testDouble() { final MersenneTwisterGenerateRandom rnd = new MersenneTwisterGenerateRandom(1); for (final double aDOUBLE_TEST : DOUBLE_TEST) { final double g = rnd.nextDouble(); assertEquals(g, aDOUBLE_TEST, AIFH.DEFAULT_PRECISION); } }
@Override public double nextDouble() { return (((long) next(26) << 27) + next(27)) / (double) (1L << 53); }
MersenneTwisterGenerateRandom extends AbstractBoxMuller { @Override public double nextDouble() { return (((long) next(26) << 27) + next(27)) / (double) (1L << 53); } }
MersenneTwisterGenerateRandom extends AbstractBoxMuller { @Override public double nextDouble() { return (((long) next(26) << 27) + next(27)) / (double) (1L << 53); } MersenneTwisterGenerateRandom();  MersenneTwisterGenerateRandom(final long seed);  MersenneTwisterGenerateRandom(final int[] array); }
MersenneTwisterGenerateRandom extends AbstractBoxMuller { @Override public double nextDouble() { return (((long) next(26) << 27) + next(27)) / (double) (1L << 53); } 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 double nextDouble() { return (((long) next(26) << 27) + next(27)) / (double) (1L << 53); } 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();  }