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

1 23 4 5 6 7 8 91011>>

  /external/slf4j/slf4j-migrator/src/test/java/org/slf4j/migrator/helper/
RandomHelper.java 27 import java.util.Random;
31 private Random random = new Random(100); field in class:RandomHelper
41 int offset = random.nextInt(26);
49 return random.nextInt(n);
59 currentNodeLength = random.nextInt(MAX_NODE_LENGTH) + 1;
  /external/syslinux/com32/include/
stdlib.h 79 static __inline__ long random(void) function
  /external/tensorflow/tensorflow/core/lib/gtl/
top_n_test.cc 24 #include "tensorflow/core/lib/random/simple_philox.h"
33 using tensorflow::random::PhiloxRandom;
34 using tensorflow::random::SimplePhilox;
47 SimplePhilox *random, bool test_peek,
54 for (int i = 0; i != n_elements; ++i) shadow[i] = random->Uniform(limit);
78 SimplePhilox *random) {
80 TestIntTopNHelper(limit, n_elements, cmp, random, true, false);
82 TestIntTopNHelper(limit, n_elements, cmp, random, false, false);
84 TestIntTopNHelper(limit, n_elements, cmp, random, true, true);
86 TestIntTopNHelper(limit, n_elements, cmp, random, false, true)
103 TestIntTopN(size_t(-1), 3, std::greater<int>(), &random); local
104 TestIntTopN(size_t(-1), 0, std::greater<int>(), &random); local
    [all...]
  /external/tensorflow/tensorflow/core/lib/random/
distribution_sampler.cc 16 #include "tensorflow/core/lib/random/distribution_sampler.h"
22 namespace random { namespace in namespace:tensorflow
94 } // namespace random
distribution_sampler.h 16 // DistributionSampler allows generating a discrete random variable with a given
22 // takes O(1) time (2 random number generation, 2 lookups) for each sample.
25 // In contrast, util/random/weighted-picker.h provides O(lg N) sampling.
38 #include "tensorflow/core/lib/random/simple_philox.h"
44 namespace random { namespace in namespace:tensorflow
91 } // namespace random
philox_random_test.cc 16 #include "tensorflow/core/lib/random/philox_random.h"
24 #include "tensorflow/core/lib/random/philox_random_test_utils.h"
25 #include "tensorflow/core/lib/random/random.h"
26 #include "tensorflow/core/lib/random/random_distributions.h"
31 namespace random { namespace in namespace:tensorflow
72 } // namespace random
simple_philox.h 23 #include "tensorflow/core/lib/random/philox_random.h"
24 #include "tensorflow/core/lib/random/random_distributions.h"
27 namespace random { namespace in namespace:tensorflow
35 // 32 random bits
38 // 64 random bits
65 // return "base" random bits. The effect is to pick a number in the
73 } // namespace random
weighted_picker.h 37 namespace random { namespace in namespace:tensorflow
50 // Pick a random element with probability proportional to its weight.
130 } // namespace random
  /external/testng/src/test/java/test/thread/
TrueParallelSampleTest.java 5 import java.util.Random;
9 static Random random = new Random(System.currentTimeMillis()); field in class:TrueParallelSampleTest
14 Thread.sleep(random.nextInt(10));
  /libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
KeyGeneratorThread.java 53 SecureRandom random = new SecureRandom(); local
54 kg.init(random);
58 random = new SecureRandom();
59 kg.init(random);
  /prebuilts/go/darwin-x86/src/compress/bzip2/
bzip2_test.go 77 desc: "random data",
81 desc: "random data - full symbol range",
85 desc: "random data - uses RLE1 stage",
218 random = mustLoadFile("testdata/random.data.bz2")
240 func BenchmarkDecodeRand(b *testing.B) { benchmarkDecode(b, random) }
217 random = mustLoadFile("testdata\/random.data.bz2") var
  /prebuilts/go/linux-x86/src/compress/bzip2/
bzip2_test.go 77 desc: "random data",
81 desc: "random data - full symbol range",
85 desc: "random data - uses RLE1 stage",
218 random = mustLoadFile("testdata/random.data.bz2")
240 func BenchmarkDecodeRand(b *testing.B) { benchmarkDecode(b, random) }
217 random = mustLoadFile("testdata\/random.data.bz2") var
  /sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
IncludeOverlayTest.java 24 import java.util.Random;
46 // Do some Monte Carlo testing - pick random coordinates and check that if they
48 Random random = new Random(42L); local
50 int x = random.nextInt(rectangle.width);
51 int y = random.nextInt(rectangle.height);
  /test/vts-testcase/fuzz/iface_fuzzer/
ProtoFuzzerMain.cpp 40 // 64-bit random number generator.
41 static unique_ptr<Random> random; member in namespace:android::vts::fuzzer
52 [](Random &rand) {
68 // With probability 9% result is uniformly random.
90 random = make_unique<Random>(params.seed_);
92 *random.get(), ExtractPredefinedTypes(params.comp_specs_),
  /external/guava/guava-tests/benchmark/com/google/common/collect/
MinMaxPriorityQueueBenchmark.java 31 import java.util.Random;
49 private final Random random = new Random(); field in class:MinMaxPriorityQueueBenchmark
54 queue.add(random.nextInt());
60 // TODO(kevinb): precompute random #s?
61 queue.add(queue.poll() ^ random.nextInt());
69 // TODO(kevinb): precompute random #s?
70 queue.add(random.nextInt());
SortedCopyBenchmark.java 27 import java.util.Random;
59 RANDOM {
73 Random random = new Random(); local
75 set.add(random.nextInt());
HashMultisetAddPresentBenchmark.java 24 import java.util.Random;
39 Random random = new Random(); local
44 queries[i] = random.nextInt();
  /bionic/libc/kernel/uapi/linux/netfilter/
xt_statistic.h 39 } random; member in union:xt_statistic_info::__anon935
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/tech/
MifareUltralightTagTester.java 24 import java.util.Random;
27 * {@link TagTester} for MIFARE Ultralight tags. It writes random bytes to the
50 Random random = new Random(); local
57 random.nextBytes(onePage);
  /cts/tests/sample/src/android/sample/cts/
SampleDeviceResultTest.java 29 import java.util.Random;
49 * A {@link Random} to generate random integers to test the sort.
51 private static final Random random = new Random(12345); field in class:SampleDeviceResultTest
97 * Creates an array filled with random numbers of the given size.
102 array[i] = random.nextInt();
  /cts/tests/tests/renderscript/src/android/renderscript/cts/
GetAllocationTest.java 22 import java.util.Random;
27 Random random = new Random(0x827492ab); local
30 tempArray[i] = random.nextInt();
  /external/apache-commons-math/src/main/java/org/apache/commons/math/random/
RandomAdaptor.java 17 package org.apache.commons.math.random;
19 import java.util.Random;
22 * Extension of <code>java.util.Random</code> wrapping a
28 public class RandomAdaptor extends Random implements RandomGenerator {
52 * Factory method to create a <code>Random</code> using the supplied
56 * @return a Random instance wrapping the RandomGenerator
58 public static Random createAdaptor(RandomGenerator randomGenerator) {
64 * <code>boolean</code> value from this random number generator's
68 * <code>boolean</code> value from this random number generator's
77 * Generates random bytes and places them into a user-supplie
    [all...]
RandomData.java 18 package org.apache.commons.math.random;
22 * Random data generation utilities.
27 * Generates a random string of hex characters of length
30 * The generated string will be random, but not cryptographically
40 * @return random string of hex characters of length <code>len</code>
45 * Generates a uniformly distributed random integer between
48 * The generated integer will be random, but not cryptographically secure.
59 * @return a random integer greater than or equal to <code>lower</code>
65 * Generates a uniformly distributed random long integer between
68 * The generated long integer values will be random, but no
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/
DSAParameterGenerationParameters.java 14 private final SecureRandom random; field in class:DSAParameterGenerationParameters
17 * Construct without a usage index, this will do a random construction of G.
22 * @param random the source of randomness to use.
28 SecureRandom random)
30 this(L, N, certainty, random, -1);
39 * @param random the source of randomness to use.
46 SecureRandom random,
53 this.random = random;
73 return random;
    [all...]
  /external/caliper/examples/src/main/java/examples/
ArraySortBenchmark.java 24 import java.util.Random;
85 RANDOM {
88 Random random = new Random(); local
91 result[i] = random.nextInt();

Completed in 647 milliseconds

1 23 4 5 6 7 8 91011>>