Home
last modified time | relevance | path

Searched refs:nextLong (Results 1 – 25 of 74) sorted by relevance

123

/libcore/ojluni/src/main/java/jdk/random/
DL128X1024MixRandom.java300 return new L128X1024MixRandom(source.nextLong(), brine << 1, in split()
301 source.nextLong(), source.nextLong(), in split()
302 source.nextLong(), source.nextLong(), in split()
303 source.nextLong(), source.nextLong(), in split()
304 source.nextLong(), source.nextLong(), in split()
305 source.nextLong(), source.nextLong(), in split()
306 source.nextLong(), source.nextLong(), in split()
307 source.nextLong(), source.nextLong(), in split()
308 source.nextLong(), source.nextLong(), in split()
309 source.nextLong(), source.nextLong()); in split()
[all …]
DL64X1024MixRandom.java287 return new L64X1024MixRandom(brine << 1, source.nextLong(), in split()
288 source.nextLong(), source.nextLong(), in split()
289 source.nextLong(), source.nextLong(), in split()
290 source.nextLong(), source.nextLong(), in split()
291 source.nextLong(), source.nextLong(), in split()
292 source.nextLong(), source.nextLong(), in split()
293 source.nextLong(), source.nextLong(), in split()
294 source.nextLong(), source.nextLong(), in split()
295 source.nextLong(), source.nextLong()); in split()
299 public long nextLong() { in nextLong() method in L64X1024MixRandom
DL128X256MixRandom.java259 return new L128X256MixRandom(source.nextLong(), brine << 1, in split()
260 source.nextLong(), source.nextLong(), in split()
261 source.nextLong(), source.nextLong(), in split()
262 source.nextLong(), source.nextLong()); in split()
266 public long nextLong() { in nextLong() method in L128X256MixRandom
DL128X128MixRandom.java237 return new L128X128MixRandom(source.nextLong(), brine << 1, in split()
238 source.nextLong(), source.nextLong(), in split()
239 source.nextLong(), source.nextLong()); in split()
243 public long nextLong() { in nextLong() method in L128X128MixRandom
DL64X256MixRandom.java239 return new L64X256MixRandom(brine << 1, source.nextLong(), in split()
240 source.nextLong(), source.nextLong(), in split()
241 source.nextLong(), source.nextLong()); in split()
245 public long nextLong() { in nextLong() method in L64X256MixRandom
DL64X128MixRandom.java228 return new L64X128MixRandom(brine << 1, source.nextLong(), in split()
229 source.nextLong(), source.nextLong()); in split()
233 public long nextLong() { in nextLong() method in L64X128MixRandom
DL64X128StarStarRandom.java228 return new L64X128StarStarRandom(brine << 1, source.nextLong(), in split()
229 source.nextLong(), source.nextLong()); in split()
233 public long nextLong() { in nextLong() method in L64X128StarStarRandom
DXoroshiro128PlusPlus.java224 public long nextLong() { in nextLong() method in Xoroshiro128PlusPlus
270 nextLong(); in jumpAlgorithm()
DXoshiro256PlusPlus.java243 public long nextLong() { in nextLong() method in Xoshiro256PlusPlus
298 nextLong(); in jumpAlgorithm()
/libcore/ojluni/src/test/java/util/Random/
DDistinctSeeds.java52 if (new Random().nextLong() == new Random().nextLong() || in main()
53 new Random().nextLong() == new Random().nextLong()) in main()
61 randoms[i] = new Random().nextLong(); in main()
/libcore/ojluni/src/test/java/util/concurrent/tck/
DSplittableRandomTest.java106 long f = sr.nextLong();
108 while (i < NCALLS && sr.nextLong() == f)
134 assertEquals(sr1.nextLong(), sr2.nextLong());
147 while (i < NCALLS && sr.nextLong() == sc.nextLong())
162 while (i < NCALLS && sr.nextLong() == sc.nextLong())
243 () -> sr.nextLong(-17L),
244 () -> sr.nextLong(0L),
245 () -> sr.nextLong(Long.MIN_VALUE));
255 () -> sr.nextLong(17L, 2L),
256 () -> sr.nextLong(-42L, -42L),
[all …]
DThreadLocalRandomTest.java141 long f = ThreadLocalRandom.current().nextLong();
143 while (i < NCALLS && ThreadLocalRandom.current().nextLong() == f)
271 rnd.nextLong(bound);
289 rnd.nextLong(badBounds[0], badBounds[1]);
301 long f = ThreadLocalRandom.current().nextLong(bound);
306 (j = ThreadLocalRandom.current().nextLong(bound)) == f) {
321 long f = ThreadLocalRandom.current().nextLong(least, bound);
326 (j = ThreadLocalRandom.current().nextLong(least, bound)) == f) {
395 rand.set(current.nextLong());
/libcore/ojluni/src/main/java/java/util/
DSplittableRandom.java231 public long nextLong() { in nextLong() method in SplittableRandom.AbstractSplittableGeneratorProxy
232 return SplittableRandom.this.nextLong(); in nextLong()
237 return new SplittableRandom(source.nextLong(), mixGamma(source.nextLong())); in split()
299 return new SplittableRandom(nextLong(), mixGamma(nextSeed())); in split()
308 return new SplittableRandom(source.nextLong(), mixGamma(source.nextLong())); in split()
317 public long nextLong() { in nextLong() method in SplittableRandom
DPrimitiveIterator.java169 long nextLong(); in nextLong() method
183 action.accept(nextLong()); in forEachRemaining()
196 return nextLong(); in next()
/libcore/jsr166-tests/src/test/java/jsr166/
DThreadLocalRandomTest.java74 long f = ThreadLocalRandom.current().nextLong();
76 while (i < NCALLS && ThreadLocalRandom.current().nextLong() == f)
204 rnd.nextLong(bound);
222 rnd.nextLong(badBounds[0], badBounds[1]);
234 long f = ThreadLocalRandom.current().nextLong(bound);
239 (j = ThreadLocalRandom.current().nextLong(bound)) == f) {
254 long f = ThreadLocalRandom.current().nextLong(least, bound);
259 (j = ThreadLocalRandom.current().nextLong(least, bound)) == f) {
369 rand.set(current.nextLong());
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DRandomTest.java213 long lastNum = r.nextLong(); in test_nextLong()
217 nextNum = r.nextLong(); in test_nextLong()
244 random1Values[i] = random1.nextLong(); in test_setSeedJ()
245 random2Values[i] = random2.nextLong(); in test_setSeedJ()
246 random3Values[i] = random3.nextLong(); in test_setSeedJ()
256 random3Values[i] = random3.nextLong(); in test_setSeedJ()
295 mr.nextLong(); in test_next()
DScannerTest.java2163 assertEquals(123, s.nextLong(10)); in test_nextLongI()
2164 assertEquals(456, s.nextLong(10)); in test_nextLongI()
2166 s.nextLong(10); in test_nextLongI()
2173 assertEquals(38, s.nextLong(5)); in test_nextLongI()
2175 s.nextLong(5); in test_nextLongI()
2183 s.nextLong(10); in test_nextLongI()
2195 s.nextLong(10); in test_nextLongI()
2201 assertEquals(23456, s.nextLong(10)); in test_nextLongI()
2202 assertEquals(23456, s.nextLong(10)); in test_nextLongI()
2210 s.nextLong(10); in test_nextLongI()
[all …]
/libcore/ojluni/src/main/java/java/util/random/
DRandomGenerator.java359 return LongStream.generate(this::nextLong).sequential(); in longs()
386 … return LongStream.generate(() -> nextLong(randomNumberOrigin, randomNumberBound)).sequential(); in longs()
484 long rnd = nextLong(); in nextBytes()
489 for (long rnd = nextLong(); i < len; rnd >>>= Byte.SIZE) in nextBytes()
567 return (nextLong() >>> 11) * 0x1.0p-53; in nextDouble()
629 return (int)(nextLong() >>> 32); in nextInt()
689 long nextLong(); in nextLong() method
711 default long nextLong(long bound) { in nextLong() method
738 default long nextLong(long origin, long bound) { in nextLong() method
/libcore/ojluni/src/main/java/java/util/concurrent/
DThreadLocalRandom.java422 public long nextLong() { in nextLong() method in ThreadLocalRandom.ThreadLocalRandomProxy
423 return ThreadLocalRandom.current().nextLong(); in nextLong()
465 public long nextLong() { in nextLong() method in ThreadLocalRandom
474 public long nextLong(long bound) { in nextLong() method in ThreadLocalRandom
475 return super.nextLong(bound); in nextLong()
483 public long nextLong(long origin, long bound) { in nextLong() method in ThreadLocalRandom
484 return super.nextLong(origin, bound); in nextLong()
/libcore/ojluni/annotations/flagged_api/java/util/concurrent/
DThreadLocalRandom.annotated.java61 public long nextLong() { throw new RuntimeException("Stub!"); } in nextLong() method in ThreadLocalRandom
63 public long nextLong(long bound) { throw new RuntimeException("Stub!"); } in nextLong() method in ThreadLocalRandom
65 public long nextLong(long origin, long bound) { throw new RuntimeException("Stub!"); } in nextLong() method in ThreadLocalRandom
/libcore/ojluni/src/main/java/java/math/
DBitSieve.java198 long nextLong = ~bits[i]; in retrieve() local
200 if ((nextLong & 1) == 1) { in retrieve()
206 nextLong >>>= 1; in retrieve()
/libcore/luni/src/test/java/libcore/java/util/random/
DSplittableGeneratorTest.java62 assertEquals(random1.nextLong(), random2.nextLong()); in assertGeneratorsAreEquals()
/libcore/ojluni/src/main/java/jdk/internal/util/random/
DRandomSupport.java411 long r = rng.nextLong(); in boundedNextLong()
428 u = rng.nextLong() >>> 1) // retry in boundedNextLong()
435 r = rng.nextLong(); in boundedNextLong()
488 long r = rng.nextLong(); in boundedNextLong()
501 u = rng.nextLong() >>> 1) in boundedNextLong()
1164 long U1 = rng.nextLong(); in computeNextExponential()
1179 long UA = rng.nextLong(); in computeNextExponential()
1191 for (U1 = (U1 >>> 1);; U1 = (rng.nextLong() >>> 1)) { in computeNextExponential()
1192 long U2 = (rng.nextLong() >>> 1); in computeNextExponential()
1221 U1 = rng.nextLong(); in computeNextExponential()
[all …]
/libcore/luni/src/test/java/libcore/java/util/
DRandomTest.java154 rands[i] = rand.nextLong(); in test_longs$()
168 rands[i] = rand.nextLong(); in test_longs$L()
189 rands[i] = (rand.nextLong() & 127) + origin; in test_longs$II()
209 rands[i] = (rand.nextLong() & 127) + origin; in test_longs$LII()
/libcore/ojluni/src/test/java/lang/Math/
DMultiplicationTests.java132 if (!chk.apply(rnd.nextLong(), rnd.nextLong())) { in test()

123