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

1 2 3 4 5 6 7 8 91011>>

  /external/tensorflow/tensorflow/core/lib/random/
random.h 22 namespace random { namespace in namespace:tensorflow
24 // Return a 64-bit random value. Different sequences are generated
28 // Return a 64-bit random value. Uses
32 } // namespace random
random_distributions.cc 16 #include "tensorflow/core/lib/random/distribution_sampler.h"
17 #include "tensorflow/core/lib/random/philox_random.h"
20 namespace random { namespace in namespace:tensorflow
26 } // namespace random
random_test.cc 16 #include "tensorflow/core/lib/random/random.h"
23 namespace random { namespace in namespace:tensorflow
35 } // namespace random
exact_uniform_int.h 24 namespace random { namespace in namespace:tensorflow
27 UintType ExactUniformInt(const UintType n, const RandomBits& random) {
30 static_assert(std::is_same<UintType, decltype(random())>::value,
31 "random() should return UintType");
35 return random() * n;
38 return random() & (n - 1);
42 // random's output is uniform in the half-open interval [0, 2^{bits}).
56 rnd = random(); // rnd uniform over [0, 2^{bits})
80 } // namespace random
random.cc 16 #include "tensorflow/core/lib/random/random.h"
18 #include <random>
23 namespace random { namespace in namespace:tensorflow
48 } // namespace random
simple_philox.cc 16 #include "tensorflow/core/lib/random/simple_philox.h"
17 #include "tensorflow/core/lib/random/exact_uniform_int.h"
21 namespace random { namespace in namespace:tensorflow
38 } // namespace random
philox_random_test_utils.h 21 #include "tensorflow/core/lib/random/philox_random.h"
22 #include "tensorflow/core/lib/random/random.h"
26 namespace random { namespace in namespace:tensorflow
28 // Return a random seed.
48 } // namespace random
  /external/slf4j/slf4j-api/src/test/java/org/slf4j/
Differentiator.java 28 import java.util.Random;
32 static Random random = new Random(System.currentTimeMillis()); field in class:Differentiator
35 return (short) random.nextInt(Short.MAX_VALUE);
  /external/syslinux/gpxe/src/core/
random.c 3 * Random number generation
15 * Seed the pseudo-random number generator
24 * Generate a pseudo-random number between 0 and 2147483647L or 2147483562?
26 * @ret rand Pseudo-random number
28 long int random ( void ) { function
  /external/apache-commons-math/src/main/java/org/apache/commons/math/random/
NormalizedRandomGenerator.java 18 package org.apache.commons.math.random;
21 * This interface represent a normalized random generator for
29 /** Generate a random scalar with null mean and unit standard deviation.
34 * @return a random scalar with null mean and unit standard deviation
RandomVectorGenerator.java 18 package org.apache.commons.math.random;
21 /** This interface represents a random generator for whole vectors.
30 /** Generate a random vector.
31 * @return a random vector as an array of double.
UncorrelatedRandomVectorGenerator.java 18 package org.apache.commons.math.random;
46 * <p>Build an uncorrelated random vector generator from
65 * <p>Build a null mean random and unit standard deviation
79 /** Generate an uncorrelated random vector.
80 * @return a random vector as a newly built array of double
84 double[] random = new double[mean.length]; local
85 for (int i = 0; i < random.length; ++i) {
86 random[i] = mean[i] + standardDeviation[i] * generator.nextNormalizedDouble();
89 return random;
GaussianRandomGenerator.java 18 package org.apache.commons.math.random;
21 * This class is a gaussian normalized random generator for scalars.
34 * @param generator underlying random generator to use
40 /** Generate a random scalar with null mean and unit standard deviation.
41 * @return a random scalar with null mean and unit standard deviation
JDKRandomGenerator.java 17 package org.apache.commons.math.random;
19 import java.util.Random;
22 * Extension of <code>java.util.Random</code> to implement
28 public class JDKRandomGenerator extends Random implements RandomGenerator {
UniformRandomGenerator.java 18 package org.apache.commons.math.random;
23 * This class implements a normalized uniform random generator.
24 * <p>Since it is a normalized random generator, it generates values
46 * @param generator underlying random generator to use
52 /** Generate a random scalar with null mean and unit standard deviation.
55 * @return a random scalar with null mean and unit standard deviation
  /external/webrtc/webrtc/base/
helpers_unittest.cc 38 std::string random = CreateRandomString(256); local
39 EXPECT_EQ(256U, random.size());
42 EXPECT_NE(random, random2);
47 std::string random = CreateRandomUuid(); local
48 EXPECT_EQ(36U, random.size());
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/
CipherKeyGenerator.java 10 protected SecureRandom random; field in class:CipherKeyGenerator
21 this.random = param.getRandom();
34 random.nextBytes(key);
KeyGenerationParameters.java 10 private SecureRandom random; field in class:KeyGenerationParameters
17 * @param random the random byte source.
21 SecureRandom random,
24 this.random = random;
29 * return the random source associated with this
32 * @return the generators random source.
36 return random;
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/
ParametersWithRandom.java 10 private SecureRandom random; field in class:ParametersWithRandom
15 SecureRandom random)
17 this.random = random;
29 return random;
  /external/guava/guava-tests/test/com/google/common/io/
RandomAmountInputStream.java 24 import java.util.Random;
26 /** Returns a random portion of the requested bytes on each call. */
28 private final Random random; field in class:RandomAmountInputStream
30 public RandomAmountInputStream(InputStream in, Random random) {
32 this.random = checkNotNull(random);
36 return super.read(b, off, random.nextInt(len) + 1);
  /external/python/cpython3/Modules/_decimal/libmpdec/
vccompat.h 37 #undef random macro
38 #define random rand macro
  /external/skia/samplecode/
SampleAnimBlur.cpp 46 SkRandom random; variable
53 paint.setColor(random.nextU() | 0xff000000);
  /external/skqp/samplecode/
SampleAnimBlur.cpp 46 SkRandom random; variable
53 paint.setColor(random.nextU() | 0xff000000);
  /external/volley/src/test/java/com/android/volley/utils/
CacheTestUtils.java 21 import java.util.Random;
26 * Makes a random cache entry.
27 * @param data Data to use, or null to use random data
33 Random random = new Random(); local
38 entry.data = new byte[random.nextInt(1024)];
40 entry.etag = String.valueOf(random.nextLong());
41 entry.lastModified = random.nextLong();
  /libcore/benchmarks/src/benchmarks/regression/
CollectionsBenchmark.java 24 import java.util.Random;
71 Random random = new Random(); local
72 random.setSeed(0);
75 list.add(random.nextInt());

Completed in 338 milliseconds

1 2 3 4 5 6 7 8 91011>>