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

12 3 4 5 6 7 8 91011>>

  /external/apache-commons-math/src/main/java/org/apache/commons/math/random/
BitsStreamGenerator.java 17 package org.apache.commons.math.random;
22 /** Base class for random number generators that generates bits streams.
33 /** Creates a new random number generator.
54 * @param bits number of random bits to produce
55 * @return random bits generated
69 final int random = next(32); local
70 bytes[i] = (byte) (random & 0xff);
71 bytes[i + 1] = (byte) ((random >> 8) & 0xff);
72 bytes[i + 2] = (byte) ((random >> 16) & 0xff);
73 bytes[i + 3] = (byte) ((random >> 24) & 0xff)
76 int random = next(32); local
98 final double random; local
138 final int random = next(32) & mask; local
    [all...]
EmpiricalDistribution.java 18 package org.apache.commons.math.random;
29 * Represents an <a href="http://random.mat.sbg.ac.at/~ste/dipl/node11.html">
41 * <li>generating random values from the distribution</li>
45 * generate random values "like" those in the input file -- i.e., the values
77 * Generates a random value from this distribution.
80 * @return the random value.
RandomGenerator.java 17 package org.apache.commons.math.random;
21 * Interface extracted from <code>java.util.Random</code>. This interface is
30 * Sets the seed of the underlying random number generator using an
40 * Sets the seed of the underlying random number generator using an
50 * Sets the seed of the underlying random number generator using a
60 * Generates random bytes and places them into a user-supplied
61 * byte array. The number of random bytes produced is equal to
65 * random bytes
71 * value from this random number generator's sequence.
76 * value from this random number generator's sequenc
    [all...]
UnitSphereRandomVectorGenerator.java 18 package org.apache.commons.math.random;
24 * Generate random vectors isotropically located on the surface of a sphere.
  /bionic/libc/include/android/
legacy_stdlib_inlines.h 76 static __inline long random(void) { return lrand48(); } function
  /cts/tests/tests/renderscript/src/android/renderscript/cts/
AllocationResize.java 23 import java.util.Random;
46 Random random = new Random(0x12345678); local
50 inArray[i] = random.nextInt();
  /developers/build/prebuilts/gradle/SwipeRefreshLayoutBasic/Application/src/main/java/com/example/android/common/dummydata/
Cheeses.java 21 import java.util.Random;
169 * Return a list of random cheeses.
174 Random random = new Random(); local
181 items.add(CHEESES[random.nextInt(CHEESES.length)]);
  /developers/build/prebuilts/gradle/SwipeRefreshListFragment/Application/src/main/java/com/example/android/common/dummydata/
Cheeses.java 21 import java.util.Random;
169 * Return a list of random cheeses.
174 Random random = new Random(); local
181 items.add(CHEESES[random.nextInt(CHEESES.length)]);
  /developers/build/prebuilts/gradle/SwipeRefreshMultipleViews/Application/src/main/java/com/example/android/common/dummydata/
Cheeses.java 21 import java.util.Random;
169 * Return a list of random cheeses.
174 Random random = new Random(); local
181 items.add(CHEESES[random.nextInt(CHEESES.length)]);
  /developers/samples/android/common/src/java/com/example/android/common/dummydata/
Cheeses.java 21 import java.util.Random;
169 * Return a list of random cheeses.
174 Random random = new Random(); local
181 items.add(CHEESES[random.nextInt(CHEESES.length)]);
  /development/samples/browseable/SwipeRefreshLayoutBasic/src/com.example.android.common/dummydata/
Cheeses.java 21 import java.util.Random;
169 * Return a list of random cheeses.
174 Random random = new Random(); local
181 items.add(CHEESES[random.nextInt(CHEESES.length)]);
  /development/samples/browseable/SwipeRefreshListFragment/src/com.example.android.common/dummydata/
Cheeses.java 21 import java.util.Random;
169 * Return a list of random cheeses.
174 Random random = new Random(); local
181 items.add(CHEESES[random.nextInt(CHEESES.length)]);
  /development/samples/browseable/SwipeRefreshMultipleViews/src/com.example.android.common/dummydata/
Cheeses.java 21 import java.util.Random;
169 * Return a list of random cheeses.
174 Random random = new Random(); local
181 items.add(CHEESES[random.nextInt(CHEESES.length)]);
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/generators/
DHParametersGenerator.java 12 private SecureRandom random; field in class:DHParametersGenerator
21 * @param random a source of randomness
26 SecureRandom random)
30 this.random = random;
44 BigInteger[] safePrimes = DHParametersHelper.generateSafePrimes(size, certainty, random);
48 BigInteger g = DHParametersHelper.selectGenerator(p, q, random);
ECKeyPairGenerator.java 23 SecureRandom random; field in class:ECKeyPairGenerator
30 this.random = ecP.getRandom();
33 if (this.random == null)
35 this.random = new SecureRandom();
52 d = new BigInteger(nBitLength, random);
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/paddings/
ISO10126d2Padding.java 13 SecureRandom random; field in class:ISO10126d2Padding
18 * @param random a SecureRandom if available.
20 public void init(SecureRandom random)
23 if (random != null)
25 this.random = random;
29 this.random = new SecureRandom();
55 in[inOff] = (byte)random.nextInt();
X923Padding.java 9 * passed in random padding is assumed, otherwise padding with zeros is used.
14 SecureRandom random = null; field in class:X923Padding
19 * @param random a SecureRandom if one is available.
21 public void init(SecureRandom random)
24 this.random = random;
49 if (random == null)
55 in[inOff] = (byte)random.nextInt();
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/signers/
RandomDSAKCalculator.java 12 private SecureRandom random; field in class:RandomDSAKCalculator
19 public void init(BigInteger n, SecureRandom random)
22 this.random = random;
37 k = new BigInteger(qBitLength, random);
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/
BaseAlgorithmParameterGenerator.java 21 protected SecureRandom random; field in class:BaseAlgorithmParameterGenerator
36 SecureRandom random)
39 this.random = random;
  /external/google-breakpad/src/common/android/testing/
mkdtemp.h 90 // Loop. On each iteration, replace the XXXXXX suffix with a random
94 int random = rand() % 1000000; local
96 snprintf(path_end - kSuffixLen, kSuffixLen + 1, "%0d", random);
  /external/guava/guava-tests/benchmark/com/google/common/collect/
SetCreationBenchmark.java 38 private SpecialRandom random; field in class:SetCreationBenchmark
47 sampleData = new CollectionBenchmarkSampleData(true, random, 0.8, size);
SetIterationBenchmark.java 40 private SpecialRandom random; field in class:SetIterationBenchmark
50 new CollectionBenchmarkSampleData(true, random, 0.8, size);
  /external/guava/guava-tests/benchmark/com/google/common/hash/
HashFunctionBenchmark.java 24 import java.util.Random;
39 // Use a statically configured random instance for all of the benchmarks
40 private static final Random random = new Random(42); field in class:HashFunctionBenchmark
51 random.nextBytes(testBytes);
  /external/skia/bench/
BlendmodeBench.cpp 30 SkRandom random; variable
34 paint.setColor(random.nextU());
38 paint.setTextSize(random.nextRangeScalar(12, 96));
39 SkScalar x = random.nextRangeScalar(0, (SkScalar)size.fWidth),
40 y = random.nextRangeScalar(0, (SkScalar)size.fHeight);
46 SkScalar w = random.nextRangeScalar(50, 100);
47 SkScalar h = random.nextRangeScalar(50, 100);
49 random.nextUScalar1() * (size.fWidth - w),
50 random.nextUScalar1() * (size.fHeight - h),
  /external/skqp/bench/
BlendmodeBench.cpp 30 SkRandom random; variable
34 paint.setColor(random.nextU());
38 paint.setTextSize(random.nextRangeScalar(12, 96));
39 SkScalar x = random.nextRangeScalar(0, (SkScalar)size.fWidth),
40 y = random.nextRangeScalar(0, (SkScalar)size.fHeight);
46 SkScalar w = random.nextRangeScalar(50, 100);
47 SkScalar h = random.nextRangeScalar(50, 100);
49 random.nextUScalar1() * (size.fWidth - w),
50 random.nextUScalar1() * (size.fHeight - h),

Completed in 1049 milliseconds

12 3 4 5 6 7 8 91011>>