@Test public void testRandomDoublesSizedBounded() { assertEquals(20, new RandomCompat().doubles(20, -0.5, 4.2).peek(new DoubleConsumer() { @Override public void accept(double value) { if (value < -0.5 || value >= 4.2) fail(); } }).count()); new RandomCompat(100).doubles(0, 1d, 20d).forEach(new DoubleConsumer() { @Override public void accept(double value) { fail(); } }); }
@NotNull public DoubleStream doubles(long streamSize) { if (streamSize < 0L) throw new IllegalArgumentException(); if (streamSize == 0L) { return DoubleStream.empty(); } return doubles().limit(streamSize); }
RandomCompat { @NotNull public DoubleStream doubles(long streamSize) { if (streamSize < 0L) throw new IllegalArgumentException(); if (streamSize == 0L) { return DoubleStream.empty(); } return doubles().limit(streamSize); } }
RandomCompat { @NotNull public DoubleStream doubles(long streamSize) { if (streamSize < 0L) throw new IllegalArgumentException(); if (streamSize == 0L) { return DoubleStream.empty(); } return doubles().limit(streamSize); } RandomCompat();  RandomCompat(long seed);  RandomCompat(@NotNull Random random); }
RandomCompat { @NotNull public DoubleStream doubles(long streamSize) { if (streamSize < 0L) throw new IllegalArgumentException(); if (streamSize == 0L) { return DoubleStream.empty(); } return doubles().limit(streamSize); } RandomCompat();  RandomCompat(long seed);  RandomCompat(@NotNull Random random); @NotNull Random getRandom(); @NotNull IntStream ints(long streamSize); @NotNull LongStream longs(long streamSize); @NotNull DoubleStream doubles(long streamSize); @NotNull IntStream ints(); @NotNull LongStream longs(); @NotNull DoubleStream doubles(); @NotNull IntStream ints(long streamSize, final int randomNumberOrigin, final int randomNumberBound); @NotNull LongStream longs(long streamSize,
            final long randomNumberOrigin, final long randomNumberBound); @NotNull DoubleStream doubles(long streamSize,
            final double randomNumberOrigin, final double randomNumberBound); @NotNull IntStream ints(final int randomNumberOrigin, final int randomNumberBound); @NotNull LongStream longs(final long randomNumberOrigin, final long randomNumberBound); @NotNull DoubleStream doubles(final double randomNumberOrigin, final double randomNumberBound); }
RandomCompat { @NotNull public DoubleStream doubles(long streamSize) { if (streamSize < 0L) throw new IllegalArgumentException(); if (streamSize == 0L) { return DoubleStream.empty(); } return doubles().limit(streamSize); } RandomCompat();  RandomCompat(long seed);  RandomCompat(@NotNull Random random); @NotNull Random getRandom(); @NotNull IntStream ints(long streamSize); @NotNull LongStream longs(long streamSize); @NotNull DoubleStream doubles(long streamSize); @NotNull IntStream ints(); @NotNull LongStream longs(); @NotNull DoubleStream doubles(); @NotNull IntStream ints(long streamSize, final int randomNumberOrigin, final int randomNumberBound); @NotNull LongStream longs(long streamSize,
            final long randomNumberOrigin, final long randomNumberBound); @NotNull DoubleStream doubles(long streamSize,
            final double randomNumberOrigin, final double randomNumberBound); @NotNull IntStream ints(final int randomNumberOrigin, final int randomNumberBound); @NotNull LongStream longs(final long randomNumberOrigin, final long randomNumberBound); @NotNull DoubleStream doubles(final double randomNumberOrigin, final double randomNumberBound);  }