Searched refs:randint (Results 1 - 25 of 209) sorted by relevance

123456789

/external/honggfuzz/examples/externalfuzzers/
H A DrangeFuzz.py5 from random import randint namespace
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))
H A DlowBytesIncrease.py4 from random import randint namespace
13 map[index] = chr(ord(char) + randint(0, RANDADDMAX))
/external/ltp/testcases/network/nfsv4/acl/
H A Drandom_gen.py31 group = self.gList[random.randint(0,len(self.gList)-1)][0]
153 l=random.randint(0,maxlength)
155 a = random.randint(0,a_length-1)
163 a = random.randint(0,a_length-1)
177 type = ace_type[random.randint(0,len(ace_type))]
178 flag = ace_flags[random.randint(0,len(ace_flags))]
179 mask = ace_mask[random.randint(0,len(ace_mask))]
180 who = ace_who[random.randint(0,len(ace_who))]
189 n = random.randint(0,userListSize-1)
199 if random.randint(
[all...]
/external/autotest/client/tests/flaky_test/
H A Dflaky_test.py12 if random.randint(0,1):
/external/autotest/server/site_tests/dummy_FlakyTestServer/
H A Dflaky_test.py12 if random.randint(0,1):
/external/syslinux/com32/libutil/
H A Dquicksort.c18 static inline int randint(int l, int u) function
42 swap(&nums[l], &nums[randint(l, u)]);
/external/toolchain-utils/bestflags/
H A 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)
H A 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))
H A 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/contrib/framework/python/ops/
H A Dsort_ops_test.py43 rank = np.random.randint(1, 3)
44 shape = [np.random.randint(0, 20) for _ in range(rank)]
57 rank = np.random.randint(5, 15)
58 shape = [np.random.randint(1, 4) for _ in range(rank)]
/external/autotest/client/site_tests/audio_CrasOutputStress/
H A Daudio_CrasOutputStress.py36 '--rate', self._rates[random.randint(0, 1)],
37 '--block_size', self._block_sizes[random.randint(0, 1)]]
/external/tensorflow/tensorflow/python/kernel_tests/
H A 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)
H A 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)
H A Dpriority_queue_test.py42 elem = np.random.randint(-5, 5, size=100).astype(np.int64)
73 elem = np.random.randint(-5, 5, size=100).astype(np.int64)
120 enqueue_counts = np.random.randint(10, size=num_threads)
122 np.random.randint(
170 enqueue_counts = np.random.randint(10, size=num_threads)
172 np.random.randint(
225 elem = np.random.randint(-5, 5, size=100).astype(np.int64)
274 elem = np.random.randint(-100, 100, size=1000).astype(np.int64)
294 elem = np.random.randint(-100, 100, size=1000).astype(np.int64)
302 elem = np.random.randint(
[all...]
H A Dslice_op_test.py94 hi = np.random.randint(0, 9)
100 lo = np.random.randint(0, hi)
155 x, y = np.random.randint(0, 3, size=2).tolist()
180 x = np.random.randint(0, 9)
181 z = np.random.randint(0, 9)
183 y = np.random.randint(0, z)
191 input_shape = np.random.randint(0, 20, size=6)
198 indices = [0 if x == 0 else np.random.randint(x) for x in input_shape]
200 np.random.randint(0, input_shape[i] - indices[i] + 1)
H A Dsparse_matmul_op_test.py33 rand_func = np.random.randint if round_bfloat else np.random.uniform
97 r1 = np.random.randint(6000, 20000)
98 r2 = np.random.randint(1, 10)
99 r3 = np.random.randint(1, 10)
115 n, k, m = np.random.randint(1, 100, size=3)
/external/autotest/client/site_tests/power_CheckAfterSuspend/
H A Dpower_CheckAfterSuspend.py57 time.sleep(random.randint(0, 3))
/external/libmojo/third_party/catapult/devil/devil/android/
H A Ddevice_temp_file.py32 random_hex = hex(random.randint(0, 2 ** 52))[2:]
/external/python/cpython2/Demo/pdist/
H A Dsecurity.py26 return random.randint(100, 100000)
/external/tensorflow/tensorflow/contrib/specs/python/
H A Dparams_ops.py68 return random.randint(lo, hi)
/external/tensorflow/tensorflow/python/keras/_impl/keras/utils/
H A Dnp_utils_test.py37 labels = [np.random.randint(0, num_classes, shape) for shape in shapes]
/external/toolchain-utils/binary_search_tool/test/
H A Dgen_obj.py62 if bad_to_gen > 0 and random.randint(1, obj_num) <= bad_obj_num:
68 t = random.randint(0, obj_num - 1)
/external/tensorflow/tensorflow/examples/speech_commands/
H A Dgenerate_streaming_test_wav.py115 background_index = np.random.randint(len(audio_processor.background_data))
117 background_offset = np.random.randint(
138 int(i * word_stride_samples) + np.random.randint(word_gap_samples))
140 is_unknown = np.random.randint(100) < FLAGS.unknown_percentage
144 wanted_label = words_list[2 + np.random.randint(len(words_list) - 2)]
145 test_data_start = np.random.randint(len(all_test_data))
/external/tensorflow/tensorflow/compiler/tests/
H A Dlrn_ops_test.py63 shape = np.random.randint(1, 16, size=4)
68 lrn_depth_radius = np.random.randint(1, shape[3])
108 depth_radius = np.random.randint(1, shape[3])
/external/tensorflow/tensorflow/contrib/learn/python/learn/estimators/
H A Drnn_common_test.py38 sequence_length = np.random.randint(0, padded_length + 1, batch_size)
40 labels = np.random.randint(0, num_classes, [batch_size, padded_length])
89 sequence_length = np.random.randint(0, padded_length + 1, batch_size)

Completed in 903 milliseconds

123456789