Home
last modified time | relevance | path

Searched defs:rng (Results 1 – 17 of 17) sorted by relevance

/libcore/benchmarks/src/benchmarks/regression/
DRandomBenchmark.java25 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/
DRandomTestCoverage.java51 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
DRandomTestChiSquared.java66 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()
DRandomCanaryPi.java40 static double pi(RandomGenerator rng) { in pi()
DRandomTestMoments.java62 static void setRNG(String rng) { in setRNG()
190 static void testOneRng(RandomGenerator rng) { in testOneRng()
DRandomTestBsi1999.java114 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/
DArbitrarilyJumpableGeneratorTest.java77 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/
DRandom.java221 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/
DPrimitiveConversionTests.java65 samples.add(new BigInteger(rng.nextInt(2000), rng)); in samples.add() argument
/libcore/ojluni/src/main/java/jdk/internal/util/random/
DRandomSupport.java410 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/
DConcurrentLinkedDequeTest.java791 final Random rng = new Random(); in testIteratorRemove() local
859 final Random rng = new Random(); in testDescendingIteratorRemove() local
DArrayDequeTest.java842 final Random rng = new Random(); in testIteratorRemove() local
910 final Random rng = new Random(); in testDescendingIteratorRemove() local
DConcurrentHashMapTest.java211 Random rng = new Random(); in testMixedComparable() local
/libcore/jsr166-tests/src/test/java/jsr166/
DArrayDequeTest.java785 final Random rng = new Random(); in testIteratorRemove() local
853 final Random rng = new Random(); in testDescendingIteratorRemove() local
DConcurrentLinkedDequeTest.java757 final Random rng = new Random(); in testIteratorRemove() local
825 final Random rng = new Random(); in testDescendingIteratorRemove() local
DConcurrentHashMapTest.java186 Random rng = new Random(); in testMixedComparable() local
/libcore/ojluni/src/test/java/lang/StackWalker/
DStackWalkTest.java291 Random rng = RandomFactory.getRandom(); in main() local