/libcore/ojluni/src/main/java/java/util/random/ |
D | RandomGenerator.java | 219 default DoubleStream doubles(long streamSize) { in doubles() argument 220 RandomSupport.checkStreamSize(streamSize); in doubles() 222 return doubles().limit(streamSize); in doubles() 246 default DoubleStream doubles(long streamSize, double randomNumberOrigin, in doubles() argument 248 RandomSupport.checkStreamSize(streamSize); in doubles() 251 return doubles(randomNumberOrigin, randomNumberBound).limit(streamSize); in doubles() 312 default IntStream ints(long streamSize) { in ints() argument 313 RandomSupport.checkStreamSize(streamSize); in ints() 315 return ints().limit(streamSize); in ints() 337 default IntStream ints(long streamSize, int randomNumberOrigin, in ints() argument [all …]
|
/libcore/ojluni/src/main/java/java/util/ |
D | SplittableRandom.java | 348 public Stream<SplittableGenerator> splits(long streamSize) { in splits() argument 349 return proxy.splits(streamSize, this); in splits() 371 public Stream<SplittableGenerator> splits(long streamSize, SplittableGenerator source) { in splits() argument 372 return proxy.splits(streamSize, source); in splits() 386 public IntStream ints(long streamSize) { in ints() argument 387 return proxy.ints(streamSize); in ints() 420 public IntStream ints(long streamSize, int randomNumberOrigin, int randomNumberBound) { in ints() argument 421 return proxy.ints(streamSize, randomNumberOrigin, randomNumberBound); in ints() 455 public LongStream longs(long streamSize) { in longs() argument 456 return proxy.longs(streamSize); in longs() [all …]
|
D | Random.java | 648 public IntStream ints(long streamSize) { in ints() argument 649 return AbstractSpliteratorGenerator.ints(this, streamSize); in ints() 725 public IntStream ints(long streamSize, int randomNumberOrigin, int randomNumberBound) { in ints() argument 731 … return AbstractSpliteratorGenerator.ints(this, streamSize, randomNumberOrigin, randomNumberBound); in ints() 733 RandomSupport.checkStreamSize(streamSize); in ints() 737 .limit(streamSize); in ints() 802 public LongStream longs(long streamSize) { in longs() argument 803 return AbstractSpliteratorGenerator.longs(this, streamSize); in longs() 862 public LongStream longs(long streamSize, long randomNumberOrigin, long randomNumberBound) { in longs() argument 863 …return AbstractSpliteratorGenerator.longs(this, streamSize, randomNumberOrigin, randomNumberBound); in longs() [all …]
|
/libcore/ojluni/annotations/flagged_api/java/util/ |
D | SplittableRandom.annotated.java | 50 …ream<java.util.random.RandomGenerator.SplittableGenerator> splits(long streamSize) { throw new Run… in splits() argument 56 …ream<java.util.random.RandomGenerator.SplittableGenerator> splits(long streamSize, java.util.rando… in splits() argument 58 public java.util.stream.IntStream ints(long streamSize) { throw new RuntimeException("Stub!"); } in ints() argument 62 public java.util.stream.IntStream ints(long streamSize, int randomNumberOrigin, int randomNumberBou… in ints() argument 66 public java.util.stream.LongStream longs(long streamSize) { throw new RuntimeException("Stub!"); } in longs() argument 70 public java.util.stream.LongStream longs(long streamSize, long randomNumberOrigin, long randomNumbe… in longs() argument 74 public java.util.stream.DoubleStream doubles(long streamSize) { throw new RuntimeException("Stub!")… in doubles() argument 78 public java.util.stream.DoubleStream doubles(long streamSize, double randomNumberOrigin, double ran… in doubles() argument
|
/libcore/ojluni/annotations/flagged_api/java/util/random/ |
D | RandomGenerator.annotated.java | 43 public default java.util.stream.DoubleStream doubles(long streamSize) { throw new RuntimeException(… in doubles() argument 45 public default java.util.stream.DoubleStream doubles(long streamSize, double randomNumberOrigin, do… in doubles() argument 51 public default java.util.stream.IntStream ints(long streamSize) { throw new RuntimeException("Stub!… in ints() argument 53 public default java.util.stream.IntStream ints(long streamSize, int randomNumberOrigin, int randomN… in ints() argument 59 public default java.util.stream.LongStream longs(long streamSize) { throw new RuntimeException("Stu… in longs() argument 61 public default java.util.stream.LongStream longs(long streamSize, long randomNumberOrigin, long ran… in longs() argument 112 …a.util.random.RandomGenerator.ArbitrarilyJumpableGenerator> jumps(long streamSize, double distance… in jumps() argument 133 public default java.util.stream.Stream<java.util.random.RandomGenerator> jumps(long streamSize) { t… in jumps() argument 137 public default java.util.stream.Stream<java.util.random.RandomGenerator> rngs(long streamSize) { th… in rngs() argument 156 ….Stream<java.util.random.RandomGenerator.JumpableGenerator> leaps(long streamSize) { throw new Run… in leaps() argument [all …]
|
/libcore/ojluni/annotations/flagged_api/java/util/concurrent/ |
D | ThreadLocalRandom.annotated.java | 81 public java.util.stream.IntStream ints(long streamSize) { throw new RuntimeException("Stub!"); } in ints() argument 85 public java.util.stream.IntStream ints(long streamSize, int randomNumberOrigin, int randomNumberBou… in ints() argument 89 public java.util.stream.LongStream longs(long streamSize) { throw new RuntimeException("Stub!"); } in longs() argument 93 public java.util.stream.LongStream longs(long streamSize, long randomNumberOrigin, long randomNumbe… in longs() argument 97 public java.util.stream.DoubleStream doubles(long streamSize) { throw new RuntimeException("Stub!")… in doubles() argument 101 public java.util.stream.DoubleStream doubles(long streamSize, double randomNumberOrigin, double ran… in doubles() argument
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | ThreadLocalRandom.java | 548 public IntStream ints(long streamSize) { in ints() argument 549 return AbstractSpliteratorGenerator.ints(ThreadLocalRandomProxy.PROXY, streamSize); in ints() 569 public IntStream ints(long streamSize, int randomNumberOrigin, int randomNumberBound) { in ints() argument 570 …return AbstractSpliteratorGenerator.ints(ThreadLocalRandomProxy.PROXY, streamSize, randomNumberOri… in ints() 591 public LongStream longs(long streamSize) { in longs() argument 592 return AbstractSpliteratorGenerator.longs(ThreadLocalRandomProxy.PROXY, streamSize); in longs() 612 public LongStream longs(long streamSize, long randomNumberOrigin, long randomNumberBound) { in longs() argument 613 …return AbstractSpliteratorGenerator.longs(ThreadLocalRandomProxy.PROXY, streamSize, randomNumberOr… in longs() 634 public DoubleStream doubles(long streamSize) { in doubles() argument 635 return AbstractSpliteratorGenerator.doubles(ThreadLocalRandomProxy.PROXY, streamSize); in doubles() [all …]
|
/libcore/ojluni/src/main/java/jdk/internal/util/random/ |
D | RandomSupport.java | 134 public static void checkStreamSize(long streamSize) { in checkStreamSize() argument 135 if (streamSize < 0L) { in checkStreamSize() 1448 public static IntStream ints(RandomGenerator gen, long streamSize) { in ints() argument 1449 RandomSupport.checkStreamSize(streamSize); in ints() 1450 return intStream(new RandomIntsSpliterator(gen, 0L, streamSize, Integer.MAX_VALUE, 0)); in ints() 1457 …public static IntStream ints(RandomGenerator gen, long streamSize, int randomNumberOrigin, int ran… in ints() argument 1458 RandomSupport.checkStreamSize(streamSize); in ints() 1460 …return intStream(new RandomIntsSpliterator(gen, 0L, streamSize, randomNumberOrigin, randomNumberBo… in ints() 1468 public static LongStream longs(RandomGenerator gen, long streamSize) { in longs() argument 1469 RandomSupport.checkStreamSize(streamSize); in longs() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | ArbitrarilyJumpableGeneratorTest.java | 100 int streamSize = 5; in jump_advancesEachElementInStream() local 102 var generators = rng.jumps(streamSize, jumpDistance).toList(); in jump_advancesEachElementInStream() 104 assertEquals(initState + jumpDistance * streamSize, rng.state, 0.001d); in jump_advancesEachElementInStream() 105 assertEquals(streamSize, generators.size()); in jump_advancesEachElementInStream()
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | Random.java | 102 public java.util.stream.IntStream ints(long streamSize) { in ints() argument 111 long streamSize, int randomNumberOrigin, int randomNumberBound) { in ints() argument 119 public java.util.stream.LongStream longs(long streamSize) { in longs() argument 128 long streamSize, long randomNumberOrigin, long randomNumberBound) { in longs() argument 136 public java.util.stream.DoubleStream doubles(long streamSize) { in doubles() argument 145 long streamSize, double randomNumberOrigin, double randomNumberBound) { in doubles() argument
|