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

1 2 3 4 5 6 7 8 91011>>

  /external/guava/guava-gwt/test-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/
AtomicLongMapTest.java 26 import java.util.Random;
39 private Random random = new Random(301); field in class:AtomicLongMapTest
189 long addend = random.nextInt(MAX_ADDEND);
206 long value = random.nextInt(MAX_ADDEND);
224 long addend = random.nextInt(MAX_ADDEND);
241 long value = random.nextInt(MAX_ADDEND);
259 long newValue = random.nextInt(MAX_ADDEND);
276 long value = random.nextInt(MAX_ADDEND)
    [all...]
  /external/guava/guava-tests/benchmark/com/google/common/base/
CharMatcherBenchmark.java 28 import java.util.Random;
81 new Random(), forceSlow, web);
106 String matchingChars, Random rand, boolean forceSlow, boolean web) {
141 private static char randomCharFrom(String s, Random rand) {
146 * Provides samples on a random distribution derived from the web.
161 private final Random random; field in class:CharMatcherBenchmark.CharSamples
163 public CharSamples(Random random) {
164 this.random = random
    [all...]
  /external/guava/guava-tests/benchmark/com/google/common/collect/
MapBenchmark.java 167 private SpecialRandom random; field in class:MapBenchmark
181 isUserTypeFast, random, hitRate, size);
  /external/guava/guava-tests/test/com/google/common/collect/
ConcurrentHashMultisetBasherTest.java 25 import java.util.Random;
38 * do operations at random. Each thread keeps track of the per-key deltas that it's directly
105 private final Random random = new Random(); field in class:ConcurrentHashMultisetBasherTest.MutateTask
118 int keyIndex = random.nextInt(nKeys);
120 Operation op = operations[random.nextInt(operations.length)];
123 int delta = random.nextInt(10);
129 int newValue = random.nextInt(3);
135 int newValue = random.nextInt(3)
    [all...]
  /external/guava/guava-tests/test/com/google/common/hash/
AbstractStreamingHasherTest.java 35 import java.util.Random;
89 Random random = new Random(); local
92 random.nextBytes(bytes);
93 String s = new String(bytes, UTF_16LE); // so all random strings are valid
136 * This test creates a long random sequence of inputs, then a lot of differently configured
141 Random random = new Random(0); // will iteratively make more debuggable, each time it break local
    [all...]
  /external/guava/guava-tests/test/com/google/common/io/
ByteSourceTester.java 37 import java.util.Random;
82 // test a random slice() of the ByteSource
83 Random random = new Random(); local
86 int off = expected.length == 0 ? 0 : random.nextInt(expected.length);
87 int len = expected.length == 0 ? 4 : random.nextInt(expected.length - off);
164 new ByteArrayInputStream(expected), new Random());
  /external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
IntlTestDateFormat.java 25 import java.util.Random;
57 private Random random; // initialized in randDouble field in class:IntlTestDateFormat
212 // Return a random double from 0.01 to 1, inclusive
214 if (random == null) {
215 random = createRandom();
237 return random.nextDouble();
  /external/icu/icu4c/source/test/intltest/
dtfmtrtts.cpp 228 int random = (int)(randFraction() * 24); local
229 if (random >= 0 && random < 24 && TEST_TABLE[i]) {
  /external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
IntlTestDateFormat.java 24 import java.util.Random;
54 private Random random; // initialized in randDouble field in class:IntlTestDateFormat
209 // Return a random double from 0.01 to 1, inclusive
211 if (random == null) {
212 random = createRandom();
234 return random.nextDouble();
  /external/jacoco/org.jacoco.core.test/src/org/jacoco/core/data/
ExecutionDataReaderWriterTest.java 26 import java.util.Random;
46 private Random random; field in class:ExecutionDataReaderWriterTest
53 random = new Random(5);
314 data[j] = random.nextBoolean();
  /external/okhttp/benchmarks/src/main/java/com/squareup/okhttp/benchmarks/
Benchmark.java 32 import java.util.Random;
49 private final Random random = new Random(0); field in class:Benchmark
182 random.nextBytes(bytes);
213 result[i] = alphabet.charAt(random.nextInt(alphabet.length()));
  /external/okhttp/okhttp-ws/src/main/java/com/squareup/okhttp/internal/ws/
WebSocketWriter.java 19 import java.util.Random;
48 private final Random random; field in class:WebSocketWriter
63 public WebSocketWriter(boolean isClient, BufferedSink sink, Random random) {
65 if (random == null) throw new NullPointerException("random == null");
68 this.random = random;
138 random.nextBytes(maskKey)
    [all...]
  /external/okhttp/okhttp-ws/src/main/java/com/squareup/okhttp/ws/
WebSocketCall.java 32 import java.util.Random;
49 private final Random random; field in class:WebSocketCall
56 WebSocketCall(OkHttpClient client, Request request, Random random) {
60 this.random = random;
63 random.nextBytes(nonce);
149 streamAllocation, response, random, listener);
160 Random random, WebSocketListener listener)
    [all...]
  /external/okhttp/okhttp-ws-tests/src/test/java/com/squareup/okhttp/ws/
WebSocketCallTest.java 29 import java.util.Random;
47 private final Random random = new Random(0); field in class:WebSocketCallTest
209 WebSocketCall call = new WebSocketCall(client, request, random);
  /external/python/cpython2/Lib/
random.py 0 """Random variable generators.
9 pick random element
10 pick random sample
11 generate random permutation
37 * The random() method is implemented in C, executes in a single Python step,
51 __all__ = ["Random","seed","random","uniform","randint","choice","sample",
72 class Random(_random.Random):
73 """Random number generator base class used by bound module functions
690 def random(self): member in class:WichmannHill
813 def random(self): member in class:SystemRandom
887 random = _inst.random variable
    [all...]
  /external/python/cpython3/Lib/
random.py 0 """Random variable generators.
9 pick random element
10 pick random sample
11 pick weighted random sample
12 generate random permutation
35 * The random() method is implemented in C, executes in a single Python step,
50 __all__ = ["Random","seed","random","uniform","randint","choice","sample",
71 class Random(_random.Random)
671 def random(self): member in class:SystemRandom
744 random = _inst.random variable
    [all...]
  /external/skia/src/gpu/ops/
GrDrawVerticesOp.cpp 347 static SkPoint random_point(SkRandom* random, SkScalar min, SkScalar max) {
349 p.fX = random->nextRangeScalar(min, max);
350 p.fY = random->nextRangeScalar(min, max);
355 SkRandom* random, SkTArray<SkPoint>* positions,
360 positions->push_back(random_point(random, min, max));
362 texCoords->push_back(random_point(random, min, max));
365 colors->push_back(GrRandomColor(random));
369 indices->push_back(random->nextULessThan((uint16_t)maxVertex));
377 type = GrPrimitiveType(random->nextULessThan(kNumGrPrimitiveTypes));
381 uint32_t primitiveCount = random->nextRangeU(1, 100)
398 randomize_params(seed_vertices(type), vertexCount, kMinVertExtent, kMaxVertExtent, random, local
404 random, &positions, &texCoords, hasTexCoords, &colors, hasColors, &indices, local
    [all...]
  /external/skia/tests/
GLProgramsTest.cpp 149 SkRandom* random,
151 GrSurfaceOrigin origin = random->nextBool() ? kTopLeft_GrSurfaceOrigin
154 random->nextBool() ? caps->getRenderTargetSampleCount(2, kRGBA_8888_GrPixelConfig) : 1;
200 // Also choose a random xfer mode.
251 static void set_random_state(GrPaint* paint, SkRandom* random) {
252 if (random->nextBool()) {
255 if (random->nextBool()) {
299 SkRandom random; local
302 // setup random render target(can fail)
304 context, &random, context->caps()))
    [all...]
  /external/skqp/src/gpu/ops/
GrDrawVerticesOp.cpp 347 static SkPoint random_point(SkRandom* random, SkScalar min, SkScalar max) {
349 p.fX = random->nextRangeScalar(min, max);
350 p.fY = random->nextRangeScalar(min, max);
355 SkRandom* random, SkTArray<SkPoint>* positions,
360 positions->push_back(random_point(random, min, max));
362 texCoords->push_back(random_point(random, min, max));
365 colors->push_back(GrRandomColor(random));
369 indices->push_back(random->nextULessThan((uint16_t)maxVertex));
377 type = GrPrimitiveType(random->nextULessThan(kNumGrPrimitiveTypes));
381 uint32_t primitiveCount = random->nextRangeU(1, 100)
398 randomize_params(seed_vertices(type), vertexCount, kMinVertExtent, kMaxVertExtent, random, local
404 random, &positions, &texCoords, hasTexCoords, &colors, hasColors, &indices, local
    [all...]
  /external/skqp/tests/
GLProgramsTest.cpp 149 SkRandom* random,
151 GrSurfaceOrigin origin = random->nextBool() ? kTopLeft_GrSurfaceOrigin
153 int sampleCnt = random->nextBool() ? caps->getSampleCount(2, kRGBA_8888_GrPixelConfig) : 1;
199 // Also choose a random xfer mode.
250 static void set_random_state(GrPaint* paint, SkRandom* random) {
251 if (random->nextBool()) {
254 if (random->nextBool()) {
298 SkRandom random; local
301 // setup random render target(can fail)
303 context, &random, context->caps()))
    [all...]
  /external/smali/dexlib2/src/test/java/org/jf/dexlib2/writer/
DexDataWriterTest.java 43 import java.util.Random;
46 private Random random; field in class:DexDataWriterTest
54 random = new Random();
101 random.nextBytes(arr);
110 random.nextBytes(arr);
  /external/tensorflow/tensorflow/core/lib/random/
random_distributions.h 28 #include "tensorflow/core/lib/random/philox_random.h"
31 namespace random { namespace in namespace:tensorflow
40 // A class that generates uniform distribution random numbers from the
41 // underlying random integer generator.
257 // A class that generates unit normal distribution random numbers from the
258 // underlying random integer generator.
560 // mantissa == 10 random bits
577 // mantissa == 23 random bits
595 // mantissa == 52 random bits
607 } // namespace random
    [all...]
random_distributions_test.cc 16 #include "tensorflow/core/lib/random/random_distributions.h"
26 #include "tensorflow/core/lib/random/philox_random.h"
27 #include "tensorflow/core/lib/random/philox_random_test_utils.h"
28 #include "tensorflow/core/lib/random/random.h"
33 namespace random { namespace in namespace:tensorflow
352 } // namespace random
  /external/v8/src/inspector/
v8-debugger-script.cc 32 static uint64_t random[] = {0x67452301, 0xEFCDAB89, 0x98BADCFE, 0x10325476, local
50 zi[current] = (zi[current] * random[current]) % prime[current];
61 zi[current] = (zi[current] * random[current]) % prime[current];
  /external/valgrind/memcheck/tests/
unit_oset.c 46 /* Consistent random number generator, so it produces the
49 #define random error_do_not_use_libc_random macro

Completed in 380 milliseconds

1 2 3 4 5 6 7 8 91011>>