HomeSort by relevance Sort by last modified time
    Searched defs:random (Results 1 - 25 of 401) 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
  /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/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/libprotobuf-mutator/src/
mutator.h 22 #include <random>
26 #include "src/random.h"
44 // seed: value to initialize random number generator.
45 explicit Mutator(RandomEngine* random);
76 RandomEngine* random() { return random_; } function in class:protobuf_mutator::Mutator
  /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 11 private SecureRandom random; field in class:ParametersWithRandom
16 SecureRandom random)
18 this.random = random;
30 return random;
  /external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/
CipherKeyGenerator.java 12 protected SecureRandom random; field in class:CipherKeyGenerator
23 this.random = param.getRandom();
36 random.nextBytes(key);
KeyGenerationParameters.java 12 private SecureRandom random; field in class:KeyGenerationParameters
19 * @param random the random byte source.
23 SecureRandom random,
26 this.random = random;
31 * return the random source associated with this
34 * @return the generators random source.
38 return random;
  /external/catch2/examples/
300-Gen-OwnGenerator.cpp 4 // Specifically we will implement a random number generator for integers
9 #include <random>
40 Catch::Generators::GeneratorWrapper<int> random(int low, int high) { function
46 TEST_CASE("Generating random ints", "[example][generator]") {
48 auto i = GENERATE(take(100, random(-100, 100)));
52 SECTION("Creating the random generator directly") {
310-Gen-VariablesInGenerators.cpp 11 #include <random>
41 Catch::Generators::GeneratorWrapper<double> random(double low, double high) { function
46 TEST_CASE("Generate random doubles across different ranges",
58 // auto number = GENERATE(take(50, random(r.first, r.second)));
65 return makeGenerators(take(50, random(std::get<0>(r), std::get<1>(r))));
  /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/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/trace/internal/
RandomHandler.java 20 import java.util.Random;
24 * Abstract class to access the current {@link Random}.
31 * Returns the current {@link Random}.
33 * @return the current {@code Random}.
35 public abstract Random current();
40 private final Random random = new SecureRandom(); field in class:RandomHandler.SecureRandomHandler
46 public Random current() {
47 return random;
  /external/python/cpython3/Modules/_decimal/libmpdec/
vccompat.h 37 #undef random macro
38 #define random rand macro

Completed in 1536 milliseconds

1 2 3 4 5 6 7 8 91011>>