/external/honggfuzz/examples/externalfuzzers/ |
H A D | rangeFuzz.py | 5 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 D | lowBytesIncrease.py | 4 from random import randint namespace 13 map[index] = chr(ord(char) + randint(0, RANDADDMAX))
|
/external/ltp/testcases/network/nfsv4/acl/ |
H A D | random_gen.py | 31 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 D | flaky_test.py | 12 if random.randint(0,1):
|
/external/autotest/server/site_tests/dummy_FlakyTestServer/ |
H A D | flaky_test.py | 12 if random.randint(0,1):
|
/external/syslinux/com32/libutil/ |
H A D | quicksort.c | 18 static inline int randint(int l, int u) function 42 swap(&nums[l], &nums[randint(l, u)]);
|
/external/toolchain-utils/bestflags/ |
H A D | flags_test.py | 33 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 D | task_test.py | 84 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 D | genetic_algorithm.py | 35 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 D | sort_ops_test.py | 43 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 D | audio_CrasOutputStress.py | 36 '--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 D | unique_op_test.py | 32 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 D | listdiff_op_test.py | 90 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 D | priority_queue_test.py | 42 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 D | slice_op_test.py | 94 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 D | sparse_matmul_op_test.py | 33 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 D | power_CheckAfterSuspend.py | 57 time.sleep(random.randint(0, 3))
|
/external/libmojo/third_party/catapult/devil/devil/android/ |
H A D | device_temp_file.py | 32 random_hex = hex(random.randint(0, 2 ** 52))[2:]
|
/external/python/cpython2/Demo/pdist/ |
H A D | security.py | 26 return random.randint(100, 100000)
|
/external/tensorflow/tensorflow/contrib/specs/python/ |
H A D | params_ops.py | 68 return random.randint(lo, hi)
|
/external/tensorflow/tensorflow/python/keras/_impl/keras/utils/ |
H A D | np_utils_test.py | 37 labels = [np.random.randint(0, num_classes, shape) for shape in shapes]
|
/external/toolchain-utils/binary_search_tool/test/ |
H A D | gen_obj.py | 62 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 D | generate_streaming_test_wav.py | 115 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 D | lrn_ops_test.py | 63 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 D | rnn_common_test.py | 38 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)
|