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

1 2 3

  /frameworks/av/media/libstagefright/codecs/amrwbenc/src/
random.c 18 * File: random.c *
20 * Description: Signed 16 bits random generator *
27 Word16 Random(Word16 * seed)
  /external/webrtc/webrtc/base/
random.h 22 class Random {
24 explicit Random(uint64_t seed);
26 // Return pseudo-random integer of the specified type.
38 // Uniformly distributed pseudo-random number in the interval [0, t].
41 // Uniformly distributed pseudo-random number in the interval [low, high].
44 // Uniformly distributed pseudo-random number in the interval [low, high].
54 // Outputs a nonzero 64-bit random number.
65 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(Random);
68 // Return pseudo-random number in the interval [0.0, 1.0).
70 float Random::Rand<float>()
    [all...]
random.cc 10 #include "webrtc/base/random.h"
18 Random::Random(uint64_t seed) {
23 uint32_t Random::Rand(uint32_t t) {
36 uint32_t Random::Rand(uint32_t low, uint32_t high) {
41 int32_t Random::Rand(int32_t low, int32_t high) {
51 float Random::Rand<float>() {
58 double Random::Rand<double>() {
65 bool Random::Rand<bool>() {
69 double Random::Gaussian(double mean, double standard_deviation)
    [all...]
  /external/eigen/Eigen/src/Core/
Random.h 20 inline const Scalar operator() (Index, Index = 0) const { return random<Scalar>(); }
29 /** \returns a random matrix expression
35 * it is redundant to pass \a rows and \a cols as arguments, so Random() should be used
43 * behavior with expressions involving random matrices.
45 * \sa MatrixBase::setRandom(), MatrixBase::Random(Index), MatrixBase::Random()
49 DenseBase<Derived>::Random(Index rows, Index cols)
54 /** \returns a random vector expression
62 * it is redundant to pass \a size as argument, so Random() should be used
70 * behavior with expressions involving random matrices
    [all...]
  /external/regex-re2/re2/testing/
string_generator.cc 61 // Generates random digits_, return true if successful.
62 // Returns false if the random sequence is over.
95 // Sets generator up to return n random strings.
96 void StringGenerator::Random(int32 seed, int n) {
  /packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
unittest.h 94 class Random {
96 Random(unsigned seed = 0) : mSeed(seed) {}
  /external/deqp/framework/delibs/decpp/
deRandom.hpp 23 * \brief Random number generator utilities.
35 //! Random self-test - compare returned values against hard-coded values.
38 class Random
41 Random (deUint32 seed) { deRandom_init(&m_rnd, seed); }
42 ~Random (void) {}
70 bool operator== (const Random& other) const;
71 bool operator!= (const Random& other) const;
79 inline float Random::getFloat (float min, float max)
85 inline double Random::getDouble (double min, double max)
91 inline int Random::getInt (int min, int max
    [all...]
  /external/skia/bench/
RectoriBench.cpp 29 SkRandom Random;
32 SkScalar blurSigma = Random.nextRangeScalar(1.5f, 25.0f);
33 SkScalar size = Random.nextRangeScalar(20*blurSigma, 50*blurSigma);
35 SkScalar x = Random.nextRangeScalar(0.0f, W - size);
36 SkScalar y = Random.nextRangeScalar(0.0f, H - size);
56 paint.setColor(0xff000000 | Random.nextU());
  /external/gemmlowp/test/
test.h 34 inline int Random() {
106 (*m)(r, c) = Random() & mask;
  /external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/particles/influencers/
ColorInfluencer.java 15 /** It's an {@link Influencer} which assigns a random color when a particle is activated. */
16 public static class Random extends ColorInfluencer{
29 colorChannel.data[i+ParticleChannels.RedOffset] = MathUtils.random();
30 colorChannel.data[i+ParticleChannels.GreenOffset] = MathUtils.random();
31 colorChannel.data[i+ParticleChannels.BlueOffset] = MathUtils.random();
32 colorChannel.data[i+ParticleChannels.AlphaOffset] = MathUtils.random();
37 public Random copy () {
38 return new Random();
ModelInfluencer.java 48 /** Assigns a random model of {@link ModelInfluencer#models} to the particles.*/
49 public static class Random extends ModelInfluencer{
55 return new ModelInstance(models.random());
60 public Random(){
65 public Random(Random influencer){
70 public Random (Model...models) {
95 public Random copy () {
96 return new Random(this);
RegionInfluencer.java 52 /** Assigns a random region of {@link RegionInfluencer#regions} to the particles.*/
53 public static class Random extends RegionInfluencer{
54 public Random(){}
55 public Random (Random regionInfluencer) {
58 public Random (TextureRegion textureRegion) {
62 public Random (Texture texture) {
71 AspectTextureRegion region = regions.random();
82 public Random copy () {
83 return new Random(this)
    [all...]
ParticleControllerInfluencer.java 67 /** Assigns a random controller of {@link ParticleControllerInfluencer#templates} to the particles.*/
68 public static class Random extends ParticleControllerInfluencer{
74 ParticleController controller = templates.random().copy();
91 public Random (){
95 public Random (ParticleController... templates) {
100 public Random (Random particleControllerRandom) {
140 public Random copy () {
141 return new Random(this);
  /prebuilts/gdb/darwin-x86/lib/python2.7/
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
684 def random(self): member in class:WichmannHill
807 def random(self): member in class:SystemRandom
881 random = _inst.random variable
    [all...]
  /prebuilts/gdb/linux-x86/lib/python2.7/
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
684 def random(self): member in class:WichmannHill
807 def random(self): member in class:SystemRandom
881 random = _inst.random variable
    [all...]
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/
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
684 def random(self): member in class:WichmannHill
807 def random(self): member in class:SystemRandom
881 random = _inst.random variable
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/
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
684 def random(self): member in class:WichmannHill
807 def random(self): member in class:SystemRandom
881 random = _inst.random variable
    [all...]
  /external/v8/test/cctest/
types-fuzz.h 31 #include "src/base/utils/random-number-generator.h"
213 Type* Random() {
  /external/llvm/tools/llvm-stress/
llvm-stress.cpp 1 //===-- llvm-stress.cpp - Generate random LL files to stress-test LLVM ----===//
10 // This program is a utility that generates random .ll files to stress-test
81 /// A utility class to provide a pseudo-random number generator which is
85 class Random {
88 Random(unsigned _seed):Seed(_seed) {}
90 /// Return a random integer, up to a
95 // Only lowest 19 bits are random-ish.
99 /// Return a random 32 bit integer.
106 /// Return a random 64 bit integer.
143 /// modifying and adding new random instructions
    [all...]
  /external/protobuf/gtest/include/gtest/internal/
gtest-internal.h 765 // A simple Linear Congruential Generator for generating random
768 // code). Unlike rand_r(), it's portable. An LCG isn't very random,
770 class GTEST_API_ Random {
774 explicit Random(UInt32 seed) : state_(seed) {}
778 // Generates a random number from [0, range). Crashes if 'range' is
784 GTEST_DISALLOW_COPY_AND_ASSIGN_(Random);
    [all...]
  /libcore/ojluni/src/main/java/java/util/
Random.java 45 * If two instances of {@code Random} are created with the same
49 * class {@code Random}. Java implementations must use all the algorithms
50 * shown here for the class {@code Random}, for the sake of absolute
51 * portability of Java code. However, subclasses of class {@code Random}
55 * The algorithms implemented by class {@code Random} use a
59 * Many applications will find the method {@link Math#random} simpler to use.
61 * <p>Instances of {@code java.util.Random} are threadsafe.
62 * However, the concurrent use of the same {@code java.util.Random}
68 * <p>Instances of {@code java.util.Random} are not cryptographically
70 * get a cryptographically secure pseudo-random number generator for us
    [all...]
  /system/extras/tests/net_test/
multinetwork_test.py 19 import random namespace
610 # Send a UDP packet to a random on-link destination.
836 def Random():
837 return random.randint(1000000, 2000000)
839 start, end = tuple(sorted([Random(), Random()]))
840 table = Random()
841 priority = Random()
    [all...]
  /external/google-breakpad/src/testing/gtest/include/gtest/internal/
gtest-internal.h 745 // A simple Linear Congruential Generator for generating random
748 // code). Unlike rand_r(), it's portable. An LCG isn't very random,
750 class GTEST_API_ Random {
754 explicit Random(UInt32 seed) : state_(seed) {}
758 // Generates a random number from [0, range). Crashes if 'range' is
764 GTEST_DISALLOW_COPY_AND_ASSIGN_(Random);
    [all...]
  /external/gtest/include/gtest/internal/
gtest-internal.h 671 // A simple Linear Congruential Generator for generating random
674 // code). Unlike rand_r(), it's portable. An LCG isn't very random,
676 class GTEST_API_ Random {
680 explicit Random(UInt32 seed) : state_(seed) {}
684 // Generates a random number from [0, range). Crashes if 'range' is
690 GTEST_DISALLOW_COPY_AND_ASSIGN_(Random);
    [all...]
  /external/llvm/utils/unittest/googletest/include/gtest/internal/
gtest-internal.h 774 // A simple Linear Congruential Generator for generating random
777 // code). Unlike rand_r(), it's portable. An LCG isn't very random,
779 class GTEST_API_ Random {
783 explicit Random(UInt32 seed) : state_(seed) {}
787 // Generates a random number from [0, range). Crashes if 'range' is
793 GTEST_DISALLOW_COPY_AND_ASSIGN_(Random);
    [all...]

Completed in 925 milliseconds

1 2 3