Home
last modified time | relevance | path

Searched refs:randint (Results 1 – 25 of 277) sorted by relevance

12345678910>>...12

/external/ltp/testcases/network/nfsv4/acl/
Drandom_gen.py32 group = self.gList[random.randint(0,len(self.gList)-1)][0]
154 l=random.randint(0,maxlength)
156 a = random.randint(0,a_length-1)
164 a = random.randint(0,a_length-1)
178 type = ace_type[random.randint(0,len(ace_type))]
179 flag = ace_flags[random.randint(0,len(ace_flags))]
180 mask = ace_mask[random.randint(0,len(ace_mask))]
181 who = ace_who[random.randint(0,len(ace_who))]
190 n = random.randint(0,userListSize-1)
200 if random.randint(0,1) == 1:
[all …]
/external/v8/tools/
Dbigint-tester.py51 if negative == kYes or (negative == kRandom and (random.randint(0, 1) == 0)):
54 s.append(kChars[random.randint(1, kBase - 1)]) # No leading zero.
56 s.append(kChars[random.randint(0, kBase - 1)])
125 return GenRandom(random.randint(0, kLineLength))
152 return random.randint(0, kLineLength), random.randint(0, kLineLength)
208 left_length = random.randint(1, kLineLength)
222 return random.randint(min_left, kLineLength), random.randint(1, max_right)
237 left_length = random.randint(0, kLineLength - 1)
239 small_shift = random.randint(0, 1) == 0
244 right_length = random.randint(0, 3)
/external/honggfuzz/examples/externalfuzzers/
DrangeFuzz.py5 from random import randint
16 bytes_to_flip = randint(MIN_BYTES_TO_FLIP, MAX_BYTES_TO_FLIP)
20 byte_pos = randint(RANGE_START, RANGE_END)
21 byte_new = chr(randint(0, 255))
DlowBytesIncrease.py4 from random import randint
13 map[index] = chr(ord(char) + randint(0, RANDADDMAX))
/external/toolchain-utils/bestflags/
Dflags_test.py33 start = random.randint(1, sys.maxint - 1)
34 end = random.randint(start + 1, sys.maxint)
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)
Dtask_test.py84 identifier = random.randint(-sys.maxint - 1, -1)
126 result = tuple([random.randint(0, RANDOM_BUILD_RESULT) for _ in range(5)])
137 random_test_result = random.randint(0, RANDOM_TESTRESULT)
161 result = tuple([random.randint(0, RANDOM_BUILD_RESULT) for _ in range(5)])
168 work_task.SetResult(task.TEST_STAGE, random.randint(0, RANDOM_TESTRESULT))
Dgenetic_algorithm.py35 return first_flag if random.randint(0, 1) else second_flag
54 if random.randint(0, int(1 / mutation_rate)):
130 output_flags = [father_flags[f] for f in self_flags if random.randint(0, 1)]
131 others = [mother_flags[f] for f in other_flags if random.randint(0, 1)]
/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/serialization/
Dpadded_batch_dataset_serialization_test.py39 seq_lens1 = np.random.randint(1, 20, size=(32,)).astype(np.int32)
40 seq_lens2 = np.random.randint(21, 40, size=(32,)).astype(np.int32)
59 seq_lens1 = np.random.randint(1, 20, size=(32,)).astype(np.int32)
60 seq_lens2 = np.random.randint(21, 40, size=(32,)).astype(np.int32)
/external/tensorflow/tensorflow/python/kernel_tests/
Dunique_op_test.py32 x = np.random.randint(2, high=10, size=7000)
43 x = np.random.randint(2, high=10, size=7000)
54 indx = np.random.randint(65, high=122, size=7000)
81 x = np.random.randint(2, high=10, size=7000)
95 x = np.random.randint(2, high=10, size=7000)
108 x = np.random.randint(2, high=10, size=7000)
121 indx = np.random.randint(65, high=122, size=7000)
156 x = np.random.randint(2, high=10, size=7000)
Dpriority_queue_test.py44 elem = np.random.randint(-5, 5, size=100).astype(np.int64)
75 elem = np.random.randint(-5, 5, size=100).astype(np.int64)
122 enqueue_counts = np.random.randint(10, size=num_threads)
124 np.random.randint(
172 enqueue_counts = np.random.randint(10, size=num_threads)
174 np.random.randint(
227 elem = np.random.randint(-5, 5, size=100).astype(np.int64)
276 elem = np.random.randint(-100, 100, size=1000).astype(np.int64)
296 elem = np.random.randint(-100, 100, size=1000).astype(np.int64)
304 elem = np.random.randint(-100, 100, size=1000).astype(np.int64)
Dmanip_ops_test.py68 self._testAll(np.random.randint(-100, 100, (5)).astype(t), 3, 0)
71 np.random.randint(-100, 100, (4, 4, 3)).astype(t), [1, -2, 3],
74 np.random.randint(-100, 100, (4, 2, 1, 3)).astype(t), [0, 1, -2],
98 self._testAll(np.random.randint(-100, 100, (5)).astype(np.int32), 3, -1)
99 self._testAll(np.random.randint(-100, 100, (4, 4)).astype(np.int32), 3, -2)
104 manip_ops.roll(np.random.randint(-100, 100, (4, 4)).astype(np.int32),
Dsplit_op_test.py129 shape = np.random.randint(1, 5, size=5)
130 split_dim = np.random.randint(-5, 5)
132 num_split = np.random.randint(16, 25)
134 num_split = np.random.randint(2, 8)
135 size_splits = np.random.randint(2, 8, num_split, dtype=np.int32)
160 size_splits = np.random.randint(1, 3, num_split, dtype=np.int32)
287 shape = np.random.randint(0, 5, size=5)
288 split_dim = np.random.randint(-5, 5)
290 num_split = np.random.randint(9, 15)
292 num_split = np.random.randint(2, 8)
[all …]
Dslice_op_test.py136 hi = np.random.randint(0, 9)
142 lo = np.random.randint(0, hi)
200 x, y = np.random.randint(0, 3, size=2).tolist()
226 x = np.random.randint(0, 9)
227 z = np.random.randint(0, 9)
229 y = np.random.randint(0, z)
237 input_shape = np.random.randint(0, 20, size=6)
244 indices = [0 if x == 0 else np.random.randint(x) for x in input_shape]
246 np.random.randint(0, input_shape[i] - indices[i] + 1)
Dlistdiff_op_test.py90 x_size = np.random.randint(max_size + 1)
91 x = np.random.randint(int_low, int_high, size=x_size)
92 y_size = np.random.randint(max_size + 1)
93 y = np.random.randint(int_low, int_high, size=y_size)
Dsparse_matmul_op_test.py34 rand_func = np.random.randint if round_bfloat else np.random.uniform
102 r1 = np.random.randint(6000, 20000)
103 r2 = np.random.randint(1, 10)
104 r3 = np.random.randint(1, 10)
121 n, k, m = np.random.randint(1, 100, size=3)
Dlrn_op_test.py60 shape = np.random.randint(1, 16, size=4)
66 lrn_depth_radius = np.random.randint(1, min(8, shape[3]))
121 shape = np.random.randint(1, 5, size=4)
126 lrn_depth_radius = np.random.randint(1, min(8, shape[3]))
Dembedding_ops_test.py107 shape = np.random.randint(1, 20, size=4)
108 indices = np.random.randint(shape[0], size=2 * shape[0])
115 shape = np.random.randint(1, 20, size=4)
116 indices = np.random.randint(shape[0], size=2 * shape[0])
353 id_vals = np.random.randint(vocab_size, size=num_vals)
376 id_vals = np.random.randint(vocab_size, size=num_vals)
399 id_vals = np.random.randint(vocab_size, size=num_vals)
425 id_vals = np.random.randint(vocab_size, size=num_vals)
450 id_vals = np.random.randint(vocab_size, size=num_vals)
478 id_vals = np.random.randint(vocab_size, size=num_vals)
[all …]
/external/tensorflow/tensorflow/examples/speech_commands/
Dgenerate_streaming_test_wav.py116 background_index = np.random.randint(len(audio_processor.background_data))
118 background_offset = np.random.randint(
139 int(i * word_stride_samples) + np.random.randint(word_gap_samples))
141 is_unknown = np.random.randint(100) < FLAGS.unknown_percentage
145 wanted_label = words_list[2 + np.random.randint(len(words_list) - 2)]
146 test_data_start = np.random.randint(len(all_test_data))
/external/autotest/client/site_tests/audio_CrasStress/
Daudio_CrasStress.py47 cmd += ['--rate', self._RATES[random.randint(0, 1)],
48 '--block_size', self._BLOCK_SIZES[random.randint(0, 1)]]
100 add = random.randint(0, 1)
108 stream_type = random.randint(0, 1)
/external/tensorflow/tensorflow/compiler/tests/
Dlistdiff_op_test.py69 x_size = np.random.randint(max_size + 1)
70 x = np.random.randint(int_low, int_high, size=x_size)
71 y_size = np.random.randint(max_size + 1)
72 y = np.random.randint(int_low, int_high, size=y_size)
Dconcat_ops_test.py81 shape = np.random.randint(1, 5, size=5)
83 num_tensors = np.random.randint(2, 10)
85 concat_dim = np.random.randint(5)
95 input_shape[concat_dim] = np.random.randint(1, 5)
217 input_shape = np.random.randint(1, 5, size=5)
219 num_tensors = np.random.randint(1, 10)
221 concat_dim = np.random.randint(5)
222 concat_dim_sizes = np.random.randint(1, 5, size=num_tensors)
/external/bcc/tests/python/
Dtest_histogram.py24 for j in range(0, random.randint(1, 10)):
30 for j in range(0, random.randint(1, 10)):
50 for j in range(0, random.randint(1, 10)):
/external/tensorflow/tensorflow/python/ops/
Dsort_ops_test.py48 rank = np.random.randint(1, 3)
49 shape = [np.random.randint(0, 20) for _ in range(rank)]
63 rank = np.random.randint(5, 15)
64 shape = [np.random.randint(1, 4) for _ in range(rank)]
/external/python/rsa/tests/
Dtest_prime.py59 orig_randint = rsa.randnum.randint
60 rsa.randnum.randint = fake_randint
77 rsa.randnum.randint = orig_randint
/external/v8/tools/testrunner/testproc/
Dfuzzer.py138 if self._rng.randint(1, 10) <= p:
158 seed = self._rng.randint(-2147483648, 2147483647)
223 yield ['--thread-pool-size=%d' % rng.randint(1, 8)]
230 yield ['--interrupt-budget=%d' % rng.randint(1, limit * 1024)]
266 interval = rng.randint(self._min, max(value, self._min))

12345678910>>...12