HomeSort by relevance Sort by last modified time
    Searched defs:random (Results 176 - 200 of 727) sorted by null

1 2 3 4 5 6 78 91011>>

  /external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
NumberFormatRoundTripTest.java 19 import java.util.Random;
90 * Return a random value from -range..+range.
92 private Random random; field in class:NumberFormatRoundTripTest
94 if (random == null) {
95 random = createRandom(); // use test framework's random seed
97 return random.nextDouble() * range;
  /external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DateFormatRoundTripTest.java 21 import java.util.Random;
46 private Random ran;
53 ran = createRandom(); // use test framework's random seed
112 int random = (int) (ran.nextDouble() * 24); local
113 if (random >= 0 && random < 24 && TEST_TABLE[i]) {
114 TEST_TABLE[random] = false;
IntlTestNumberFormat.java 17 import java.util.Random;
150 Random random = createRandom(); // use test framework's random seed local
152 double d = random.nextDouble()*2e10 - 1e10;
NumberFormatRoundTripTest.java 18 import java.util.Random;
87 * Return a random value from -range..+range.
89 private Random random; field in class:NumberFormatRoundTripTest
91 if (random == null) {
92 random = createRandom(); // use test framework's random seed
94 return random.nextDouble() * range;
  /external/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/test/
TestBoilerplate.java 18 import java.util.Random;
40 protected static Random random = new Random(12345); field in class:TestBoilerplate
  /external/mockito/src/test/java/org/mockitousage/serialization/
ParallelSerializationTest.java 15 import java.util.Random;
68 int random = new Random().nextInt(10); local
69 switch (random) {
  /external/okhttp/okio/okio/src/test/java/okio/
TestUtil.java 22 import java.util.Random;
41 Random random = new Random(0); local
43 random.nextBytes(randomBytes);
  /external/skia/bench/
ImageCacheBudgetBench.cpp 65 * run with different cache sizes and either repeat the image order each frame or use a random
97 SkRandom random; variable
105 int other = random.nextULessThan(kImagesToDraw - i) + i;
  /external/skia/samplecode/
SampleRectanizer.cpp 22 // Rand -> random rects from 2-256
23 // Pow2Rand -> random power of 2 sized rects from 2-256
35 SkRandom random; local
37 *fRects[0].append() = SkISize::Make(random.nextRangeU(kMinRectSize, kMaxRectSize),
38 random.nextRangeU(kMinRectSize, kMaxRectSize));
40 GrNextPow2(random.nextRangeU(kMinRectSize, kMaxRectSize)),
41 GrNextPow2(random.nextRangeU(kMinRectSize, kMaxRectSize)));
  /external/skia/tests/
LListTest.cpp 154 SkRandom random; local
215 if (list1.isEmpty() || random.nextBiasedBool(3 * SK_Scalar1 / 4)) {
218 // before a random element, after a random element
220 int insertionMethod = random.nextULessThan(numValidMethods);
228 case 2: // fallthru to share code that picks random element.
230 int n = random.nextULessThan(list1.count());
273 // walk to a random place either forward or backwards and remove.
274 int n = random.nextULessThan(list1.count());
278 if (random.nextBool())
    [all...]
TArrayTest.cpp 300 SkRandom random; local
308 if (random.nextULessThan(3) < 2) {
  /external/skqp/bench/
ImageCacheBudgetBench.cpp 65 * run with different cache sizes and either repeat the image order each frame or use a random
97 SkRandom random; variable
105 int other = random.nextULessThan(kImagesToDraw - i) + i;
  /external/skqp/samplecode/
SampleRectanizer.cpp 22 // Rand -> random rects from 2-256
23 // Pow2Rand -> random power of 2 sized rects from 2-256
35 SkRandom random; local
37 *fRects[0].append() = SkISize::Make(random.nextRangeU(kMinRectSize, kMaxRectSize),
38 random.nextRangeU(kMinRectSize, kMaxRectSize));
40 GrNextPow2(random.nextRangeU(kMinRectSize, kMaxRectSize)),
41 GrNextPow2(random.nextRangeU(kMinRectSize, kMaxRectSize)));
  /external/skqp/tests/
LListTest.cpp 154 SkRandom random; local
215 if (list1.isEmpty() || random.nextBiasedBool(3 * SK_Scalar1 / 4)) {
218 // before a random element, after a random element
220 int insertionMethod = random.nextULessThan(numValidMethods);
228 case 2: // fallthru to share code that picks random element.
230 int n = random.nextULessThan(list1.count());
273 // walk to a random place either forward or backwards and remove.
274 int n = random.nextULessThan(list1.count());
278 if (random.nextBool())
    [all...]
TArrayTest.cpp 300 SkRandom random; local
308 if (random.nextULessThan(3) < 2) {
  /external/tensorflow/tensorflow/core/lib/random/
philox_random.h 16 // Implement the Philox algorithm to generate random numbers in parallel.
17 // Salmon et al. SC 2011. Parallel random numbers: as easy as 1, 2, 3.
42 namespace random { namespace in namespace:tensorflow
70 // A class that encapsulates all the states for a random number generator using
71 // the philox_4x32_10 algorithm. Each invocation returns a 128-bit random bits
153 // Returns a group of four random numbers using the underlying Philox
248 } // namespace random
  /external/v8/src/builtins/
builtins-math.cc 410 // ES6 section 20.2.2.27 Math.random ( )
420 // Cached random numbers are exhausted if index is 0. Go to slow path.
434 // Load and return next cached random number.
437 Node* random = LoadFixedDoubleArrayElement( local
439 Return(AllocateHeapNumberWithValue(random));
  /frameworks/base/core/tests/utiltests/src/com/android/internal/util/
BitwiseStreamsTest.java 28 import java.util.Random;
95 Random random = new Random(); local
101 int x = random.nextInt();
139 Random random = new Random(); local
145 int x = random.nextInt();
  /frameworks/base/services/core/java/com/android/server/location/
GpsXtraDownloader.java 29 import java.util.Random;
80 Random random = new Random(); local
81 mNextServerIndex = random.nextInt(count);
  /frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/
Utils.java 23 import java.util.Random;
29 public static String getRandomWord(Random random, int length) {
32 char base = random.nextBoolean() ? 'A' : 'a';
33 char nextChar = (char)(random.nextInt(26) + base);
40 Random random = new Random(0); local
43 result[i] = getRandomWord(random, RANDOM_WORD_LENGTH);
71 Random random = new Random(0) local
    [all...]
  /frameworks/base/tests/UiBench/src/com/android/test/uibench/
TextUtils.java 22 import java.util.Random;
38 * Create word of random assortment of lower/upper case letters
40 private static String randomWord(Random random, int length) {
43 // add random letter
44 int base = random.nextInt(2) == 0 ? 'A' : 'a';
45 result += (char)(random.nextInt(26) + base);
51 * Create word from a random assortment of a given set of codepoints, given as strings.
53 private static String randomWordFromStringSet(Random random, int length, String[] stringSet)
80 Random random = new Random(0); local
89 final Random random = new Random(0); local
108 final Random random = new Random(0); local
144 Random random = new Random(0); local
    [all...]
  /frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
KalmanFilterTest.java 24 import java.util.Random;
98 Random random = new Random(mSeed); local
102 noise[i] = random.nextGaussian() * mNoiseAmplitude;
  /libcore/ojluni/src/main/java/java/security/
SecureRandom.java 39 * This class provides a cryptographically strong random number
42 * <p>A cryptographically strong random number
43 * minimally complies with the statistical random number generator tests
58 * SecureRandom random = new SecureRandom();
61 * <p> Many SecureRandom implementations are in the form of a pseudo-random
63 * to produce a pseudo-random sequence from a true random seed.
64 * Other implementations may produce true random numbers,
68 * to retrieve random bytes:
71 * SecureRandom random = new SecureRandom()
210 SecureRandom random = SecureRandom.getInstance(prng); local
    [all...]
  /packages/apps/Dialer/java/com/android/dialer/simulator/impl/
RttChatBot.java 31 import java.util.Random;
82 private final Random random = new Random(); field in class:RttChatBot.MessageHandler
108 obtainMessage(SEND_MESSAGE, nextTyping()), 1000 * (1 + random.nextInt(10)));
111 sendMessageDelayed(obtainMessage(SEND_MESSAGE, nextTyping()), 200 * random.nextInt(10));
121 String text = CANDIDATE_MESSAGES[random.nextInt(CANDIDATE_MESSAGES.length)];
128 int size = random.nextInt(currentTypingMessage.length() - currentTypingPosition + 1);
  /packages/apps/UnifiedEmail/src/org/apache/james/mime4j/util/
SimpleTempStorage.java 30 import java.util.Random;
45 private Random random = new Random(); field in class:SimpleTempStorage
64 long n = Math.abs(random.nextLong());
93 long n = Math.abs(random.nextLong());

Completed in 1680 milliseconds

1 2 3 4 5 6 78 91011>>