Home
last modified time | relevance | path

Searched refs:Random (Results 1 – 25 of 62) sorted by relevance

123

/libcore/luni/src/test/java/libcore/java/util/
DRandomTest.java20 import java.util.Random;
28 class MyRandom extends Random { in test_subclassing()
48 Random rand = new Random(0); in test_ints$()
54 int[] streamRands = new Random(0).ints().limit(limit).toArray(); in test_ints$()
61 Random rand = new Random(0); in test_ints$L()
67 int[] streamRands = new Random(0).ints(size).toArray(); in test_ints$L()
69 assertEquals(size, new Random(0).ints(size).count()); in test_ints$L()
72 new Random(0).ints(-1); in test_ints$L()
81 Random rand = new Random(0); in test_ints$II()
87 int[] streamRands = new Random(0).ints(origin, bound).limit(limit).toArray(); in test_ints$II()
[all …]
DArraysTest.java20 import java.util.Random;
245 Random rand = new Random(0); in test_parallelPrefix$I()
279 Random rand = new Random(0); in test_parallelPrefix$III()
320 Random rand = new Random(0); in test_parallelPrefix$L()
354 Random rand = new Random(0); in test_parallelPrefix$LII()
395 Random rand = new Random(0); in test_parallelPrefix$D()
433 Random rand = new Random(0); in test_parallelPrefix$DII()
DOldAndroidTreeMapTest.java22 import java.util.Random;
30 private Random mRandom = new Random(1);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DRandomTest.java22 import java.util.Random;
27 private Random r;
41 Random r = new Random(8409238L); in test_ConstructorJ()
42 Random r2 = new Random(8409238L); in test_ConstructorJ()
49 Random r = new Random(); in test_setSeed()
51 Random r2 = new Random(); in test_setSeed()
235 Random random1 = new Random(); in test_setSeedJ()
236 Random random2 = new Random(); in test_setSeedJ()
237 Random random3 = new Random(); in test_setSeedJ()
262 static final class Mock_Random extends Random {
[all …]
/libcore/benchmarks/src/benchmarks/regression/
DBigIntegerBenchmark.java20 import java.util.Random;
24 Random r = new Random(); in timeRandomDivision()
33 Random r = new Random(); in timeRandomGcd()
42 Random r = new Random(); in timeRandomMultiplication()
DRandomBenchmark.java20 import java.util.Random;
25 Random rng = new Random(); in timeNewRandom()
31 Random rng = new Random(); in timeReusedRandom()
DPriorityQueueBenchmark.java25 import java.util.Random;
34 private Random random = new Random(189279387L);
DCollectionsBenchmark.java24 import java.util.Random;
71 Random random = new Random(); in buildList()
/libcore/ojluni/src/test/java/time/jdk/testlibrary/
DRandomFactory.java26 import java.util.Random;
60 return new Random().nextLong(); in getRandomSeed()
88 public static Random getRandom() { in getRandom()
89 return new Random(getSeed()); in getRandom()
/libcore/luni/src/test/java/libcore/java/math/
DBigIntegerTest.java20 import java.util.Random;
89 Random rand = new Random(); in test_Constructor_ILjava_util_Random()
104 Random rand = new Random(); in test_Constructor_IILjava_util_Random()
143 Random rand = new Random(); in test_probablePrime()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DDoublePrimitiveOpsTests.java29 import java.util.Random;
58 Random r = new Random(); in testSort()
76 Random r = new Random(); in testSortSort()
DIntPrimitiveOpsTests.java30 import java.util.Random;
101 Random r = new Random(); in testSort()
119 Random r = new Random(); in testSortSort()
DLongPrimitiveOpsTests.java30 import java.util.Random;
101 Random r = new Random(); in testSort()
119 Random r = new Random(); in testSortSort()
/libcore/ojluni/src/main/java/java/util/
DRandom.java77 class Random implements java.io.Serializable { class
104 public Random() { in Random() method in Random
135 public Random(long seed) { in Random() method in Random
136 if (getClass() == Random.class) in Random()
999 final Random rng;
1004 RandomIntsSpliterator(Random rng, long index, long fence, in RandomIntsSpliterator()
1041 Random r = rng; in forEachRemaining()
1054 final Random rng;
1059 RandomLongsSpliterator(Random rng, long index, long fence, in RandomLongsSpliterator()
1096 Random r = rng; in forEachRemaining()
[all …]
/libcore/benchmarks/src/benchmarks/
DSmallBigIntegerBenchmark.java20 import java.util.Random;
38 final Random r = new Random(); in main()
DZipFileBenchmark.java25 import java.util.Random;
61 Random random = new Random(); in writeEntries()
DBufferedZipFileBenchmark.java25 import java.util.Random;
42 Random random = new Random(0); in setUp()
DXmlSerializeBenchmark.java23 import java.util.Random;
54 Random r = new Random(seed); in serializeRandomXml()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
DOldBigIntegerTest.java21 import java.util.Random;
31 Random rand = new Random();
45 new BigInteger(128, (Random) null); in test_ConstructorILjava_util_Random()
60 new BigInteger(-1, (Random)null); in test_ConstructorILjava_util_Random()
79 Random rand = new Random(); in test_ConstructorIILjava_util_Random()
91 new BigInteger(1, 80, (Random)null); in test_ConstructorIILjava_util_Random()
97 new BigInteger(-1, (Random)null); in test_ConstructorIILjava_util_Random()
/libcore/luni/src/test/java/libcore/java/util/zip/
DGZIPInputStreamTest.java29 import java.util.Random;
91 new Random().nextBytes(data); in testLongMessage()
173 final Random r = new Random(10); in testMultipleMembersWithCustomBufferSize()
DGZIPOutputStreamTest.java24 import java.util.Random;
43 new Random().nextBytes(data); in testLongMessage()
DZipOutputStreamTest.java25 import java.util.Random;
54 new Random().nextBytes(data); in testLongMessage()
DOldAndroidZipStressTest.java25 import java.util.Random;
129 Random random = new Random(42); // Seed makes test reproducible in testZipDeflateInflateStress()
/libcore/support/src/test/java/org/apache/harmony/testframework/
DCharSinkTester.java27 import java.util.Random;
166 Random dice = new Random(); in sinkTestWriteLargeArray()
/libcore/ojluni/src/main/java/java/lang/
DStrictMath.java27 import java.util.Random;
682 static final Random randomNumberGenerator = new Random();

123