Searched defs:random (Results 101 - 125 of 439) sorted by relevance

1234567891011>>

/external/smali/smalidea/src/test/java/org/jf/smalidea/
H A DSmaliLexerTest.java165 * Generate some random text and make sure the lexer doesn't throw any exceptions
175 private Random random = new Random(123456789); field in class:SmaliLexerTest
179 int type = random.nextInt(10);
184 randomCodepoint = random.nextInt();
190 randomChar = (char)random.nextInt(2^16);
194 sb.append((char)random.nextInt(256));
198 sb.append((char)random.nextInt(128));
/external/testng/src/test/java/test/thread/
H A DTrueParallelSampleTest.java9 static Random random = new Random(System.currentTimeMillis()); field in class:TrueParallelSampleTest
14 Thread.sleep(random.nextInt(10));
/external/toolchain-utils/bestflags/
H A Dflags_test.py11 import random namespace
33 start = random.randint(1, sys.maxint - 1)
34 end = random.randint(start + 1, sys.maxint)
42 # If the value is not specified when the flag is constructed, a random
73 start = random.randint(1, sys.maxint - 1)
74 end = random.randint(start + 1, sys.maxint)
75 value = random.randint(start, end - 1)
89 value = random.randint(1, sys.maxint - 1)
H A Dpipeline_worker_test.py14 import random namespace
22 # Pick an integer at random.
27 """Calls a random number generator and returns a negative number."""
28 return random.randint(-sys.maxint - 1, -1)
/external/apache-commons-math/src/main/java/org/apache/commons/math/random/
H A DAbstractRandomGenerator.java17 package org.apache.commons.math.random;
39 * Cached random normal value. The default implementation for
83 * Sets the seed of the underyling random number generator using a
96 * Generates random bytes and places them into a user-supplied
97 * byte array. The number of random bytes produced is equal to
101 * random integers generated using {@link #nextInt}.</p>
104 * random bytes
124 * value from this random number generator's sequence.
134 * value from this random number generator's sequence
143 * this random numbe
[all...]
H A DBitsStreamGenerator.java17 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);
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 >> 2
[all...]
H A DCorrelatedRandomVectorGenerator.java18 package org.apache.commons.math.random;
30 * the uncorrelated components of another random vector in such a way that
33 * <p>The main use for correlated random vector generation is for Monte-Carlo
40 * to other cases as long as the underlying random generator provides
55 * uncorrelated random vector that is needed to compute the component
82 * <p>Build a correlated random vector generator from its mean
116 * <p>Build a null mean random correlated vector generator from its
280 /** Generate a correlated random vector.
281 * @return a random vector as an array of double. The returned array
H A DRandomAdaptor.java17 package org.apache.commons.math.random;
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-supplied
78 * byte array. The number of random bytes produced is equal to
82 * random bytes
92 * <code>1.0</code> from this random number generator's sequence.
96 * <code>1.0</code> from this random number generator's sequence
105 * value between <code>0.0</code> and <code>1.0</code> from this random
110 * random numbe
[all...]
H A DRandomGenerator.java17 package org.apache.commons.math.random;
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 sequence
83 * this random numbe
[all...]
/external/autotest/client/common_lib/cros/
H A Dretry.py6 import random namespace
175 random.seed()
182 random_delay = random.uniform(.5 * delay_sec, 1.5 * delay_sec)
/external/autotest/client/common_lib/cros/tendo/
H A Dbuffet_config.py6 import random namespace
26 rand_token = ''.join([random.choice(RAND_CHARS)
/external/autotest/client/cros/cellular/wardmodem/
H A Dtask_loop.py9 import random namespace
106 Boolean flag to control if random delays are inserted in posted tasks.
124 self._logger.debug('Turning %s random delays.', ('on' if value else
154 self._logger.debug('Set max random delay to %d. Random delay is %s',
297 next_delay_ms = random.randint(0, self.max_random_delay_ms)
/external/autotest/client/site_tests/login_RemoteOwnership/
H A Dlogin_RemoteOwnership.py5 import logging, random, string, os namespace
50 self.username = (''.join(random.sample(string.ascii_lowercase,6)) +
52 password = ''.join(random.sample(string.ascii_lowercase,6))
72 raise error.TestFail('Could not stop session for random user')
/external/autotest/client/site_tests/network_3GSafetyDance/
H A Dnetwork_3GSafetyDance.py7 import random namespace
97 n = random.randint(0, len(self.ops) - 1)
99 time.sleep(random.randint(5, 20) / 10.0)
121 random.seed(seed)
/external/autotest/server/site_tests/enterprise_CFM_USBPeripheralRebootStress/
H A Denterprise_CFM_USBPeripheralRebootStress.py5 import logging, time, random namespace
44 """Start a hangout session and end the session after random time.
52 time.sleep(random.randrange(1, LONG_TIMEOUT))
119 time.sleep(random.randrange(1, IDLE_TIME))
126 for test in range(random.randrange(1, MEETS_BETWEEN_REBOOT)):
/external/autotest/server/site_tests/enterprise_CFM_VolumeChange/
H A Denterprise_CFM_VolumeChange.py5 import datetime, logging, random, time namespace
80 time.sleep(random.uniform(0.01, 0.05))
84 cfm_volume = str(random.randrange(2, 100, 1))
/external/autotest/server/site_tests/firmware_PDTrySrc/
H A Dfirmware_PDTrySrc.py6 import random namespace
41 delay for reconnect adds a random delay so that test to increase
49 random.seed()
54 disc_time = self.PD_DISCONNECT_TIME + random.random()
/external/autotest/server/site_tests/p2p_EndToEndTest/
H A Dp2p_EndToEndTest.py7 import random namespace
94 # Wait a random time in order to not launch all the downloads
97 r = random.Random()
/external/autotest/test_suites/
H A Ddev_harness.py5 import ast, os, random namespace
51 m = random.choice(AFE.get_hostnames(label='board:'+new_globals['board']))
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/engines/
H A DRSABlindedEngine.java24 private SecureRandom random; field in class:RSABlindedEngine
43 random = rParam.getRandom();
48 random = new SecureRandom();
106 BigInteger r = BigIntegers.createRandomInRange(ONE, m.subtract(ONE), random);
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/
H A DDSAParameterGenerationParameters.java14 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;
24 DSAParameterGenerationParameters( int L, int N, int certainty, SecureRandom random) argument
42 DSAParameterGenerationParameters( int L, int N, int certainty, SecureRandom random, int usageIndex) argument
[all...]
/external/caliper/caliper/src/main/java/com/google/caliper/worker/
H A DMicrobenchmarkAllocationWorker.java54 private final Random random; field in class:MicrobenchmarkAllocationWorker
58 @BenchmarkMethod Method method, AllocationRecorder recorder, Random random) {
60 this.random = random;
130 int measurementReps = random.nextInt(MAX_REPS) + 1;
57 MicrobenchmarkAllocationWorker(@enchmark Object benchmark, @BenchmarkMethod Method method, AllocationRecorder recorder, Random random) argument
/external/clang/utils/
H A DFuzzTest9 import random namespace
327 it = itertools.imap(random.randrange,
330 it = itertools.imap(random.randrange, itertools.repeat(tg.num_tests))
/external/conscrypt/common/src/main/java/org/conscrypt/
H A DOpenSSLECDHKeyAgreement.java121 protected void engineInit(Key key, SecureRandom random) throws InvalidKeyException { argument
138 SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException {
143 engineInit(key, random);
137 engineInit(Key key, AlgorithmParameterSpec params, SecureRandom random) argument
/external/deqp/scripts/
H A Drun_internal_tests.py26 import random namespace
100 '--port=%d' % random.randint(50000, 60000),
247 random.seed()

Completed in 576 milliseconds

1234567891011>>