/libcore/benchmarks/src/benchmarks/regression/ |
D | RandomBenchmark.java | 25 Random rng = new Random(); in timeNewRandom() local 31 Random rng = new Random(); in timeReusedRandom() local 38 SecureRandom rng = new SecureRandom(); in timeReusedSecureRandom() local 46 SecureRandom rng = new SecureRandom(); in timeNewSecureRandom() local
|
/libcore/ojluni/src/test/java/util/Random/ |
D | RandomTestCoverage.java | 51 static void coverRandomGenerator(RandomGenerator rng) { in coverRandomGenerator() 93 RandomGenerator rng = factory.create(); in checkPredicates() local 111 static void coverStreamable(StreamableGenerator rng) { in coverStreamable() 116 static void coverSplittable(SplittableGenerator rng) { in coverSplittable() 125 static void coverJumpable(JumpableGenerator rng) { in coverJumpable() 134 static void coverLeapable(LeapableGenerator rng) { in coverLeapable() 143 static void coverArbitrarilyJumpable(ArbitrarilyJumpableGenerator rng) { in coverArbitrarilyJumpable() 185 RandomGenerator rng = RandomGenerator.getDefault(); in coverDefaults() local
|
D | RandomTestChiSquared.java | 66 static void setRNG(String rng) { in setRNG() 152 static void tryIt(RandomGenerator rng, String kind, Function<String,BooleanSupplier> f) { in tryIt() 173 static void testOneRng(RandomGenerator rng, int failureTolerance) { in testOneRng()
|
D | RandomCanaryPi.java | 40 static double pi(RandomGenerator rng) { in pi()
|
D | RandomTestMoments.java | 62 static void setRNG(String rng) { in setRNG() 190 static void testOneRng(RandomGenerator rng) { in testOneRng()
|
D | RandomTestBsi1999.java | 114 static void setRNG(String rng) { in setRNG() 407 static void tryIt(RandomGenerator rng, String id, BooleanSupplier theSupplier) { in tryIt() 415 static void testOneRng(RandomGenerator rng, int failureTolerance) { in testOneRng()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | ArbitrarilyJumpableGeneratorTest.java | 77 StubGenerator rng = new StubGenerator(initState); in jump_jumpsToJumpDistance() local 87 StubGenerator rng = new StubGenerator(initState); in leap_jumpsToLeapDistance() local 97 StubGenerator rng = new StubGenerator(initState); in jump_advancesEachElementInStream() local
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | Random.java | 221 java.util.Random rng, long index, long fence, double origin, double bound) { in RandomDoublesSpliterator() 265 final java.util.Random rng; field in Random.RandomDoublesSpliterator 275 RandomIntsSpliterator(java.util.Random rng, long index, long fence, int origin, int bound) { in RandomIntsSpliterator() 319 final java.util.Random rng; field in Random.RandomIntsSpliterator 330 java.util.Random rng, long index, long fence, long origin, long bound) { in RandomLongsSpliterator() 374 final java.util.Random rng; field in Random.RandomLongsSpliterator
|
/libcore/ojluni/src/test/java/math/BigInteger/ |
D | PrimitiveConversionTests.java | 65 samples.add(new BigInteger(rng.nextInt(2000), rng)); in samples.add() argument
|
/libcore/ojluni/src/main/java/jdk/internal/util/random/ |
D | RandomSupport.java | 410 public static long boundedNextLong(RandomGenerator rng, long origin, long bound) { in boundedNextLong() 485 public static long boundedNextLong(RandomGenerator rng, long bound) { in boundedNextLong() 537 public static int boundedNextInt(RandomGenerator rng, int origin, int bound) { in boundedNextInt() 585 public static int boundedNextInt(RandomGenerator rng, int bound) { in boundedNextInt() 643 public static double boundedNextDouble(RandomGenerator rng, double origin, double bound) { in boundedNextDouble() 675 public static double boundedNextDouble(RandomGenerator rng, double bound) { in boundedNextDouble() 715 public static float boundedNextFloat(RandomGenerator rng, float origin, float bound) { in boundedNextFloat() 747 public static float boundedNextFloat(RandomGenerator rng, float bound) { in boundedNextFloat() 1144 public static double computeNextExponential(RandomGenerator rng) { in computeNextExponential() 1250 public static double computeNextGaussian(RandomGenerator rng) { in computeNextGaussian()
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | ConcurrentLinkedDequeTest.java | 791 final Random rng = new Random(); in testIteratorRemove() local 859 final Random rng = new Random(); in testDescendingIteratorRemove() local
|
D | ArrayDequeTest.java | 842 final Random rng = new Random(); in testIteratorRemove() local 910 final Random rng = new Random(); in testDescendingIteratorRemove() local
|
D | ConcurrentHashMapTest.java | 211 Random rng = new Random(); in testMixedComparable() local
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | ArrayDequeTest.java | 785 final Random rng = new Random(); in testIteratorRemove() local 853 final Random rng = new Random(); in testDescendingIteratorRemove() local
|
D | ConcurrentLinkedDequeTest.java | 757 final Random rng = new Random(); in testIteratorRemove() local 825 final Random rng = new Random(); in testDescendingIteratorRemove() local
|
D | ConcurrentHashMapTest.java | 186 Random rng = new Random(); in testMixedComparable() local
|
/libcore/ojluni/src/test/java/lang/StackWalker/ |
D | StackWalkTest.java | 291 Random rng = RandomFactory.getRandom(); in main() local
|