Home
last modified time | relevance | path

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

123

/external/ltp/testcases/network/nfsv4/acl/
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(0,1) == 1:
[all …]
/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)]
Dtesting_batch.py64 value = random.randint(start - 1, end - 1)
70 if random.randint(0, 1):
124 new_flag = FlagSet([Flag(spec) for spec in specs if random.randint(0, 1)])
/external/syslinux/com32/libutil/
Dquicksort.c18 static inline int randint(int l, int u) in randint() function
42 swap(&nums[l], &nums[randint(l, u)]); in quick_sort_range()
/external/autotest/client/site_tests/audio_CrasOutputStress/
Daudio_CrasOutputStress.py36 '--rate', self._rates[random.randint(0, 1)],
37 '--block_size', self._block_sizes[random.randint(0, 1)]]
/external/toolchain-utils/binary_search_tool/test/
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/python/cpython2/Demo/threads/
Dsync.py530 wh.acquire(); j = randint(0,i); wh.release()
568 global TID, tid, io, wh, randint, alive
570 randint = random.randint
/external/autotest/client/site_tests/audio_ActiveStreamStress/
Daudio_ActiveStreamStress.py65 random_tab = random.randint(1, 10)
71 for i in xrange(1, random.randint(1, random_tab)):
/external/autotest/client/site_tests/network_3GSafetyDance/
Dnetwork_3GSafetyDance.py97 n = random.randint(0, len(self.ops) - 1)
99 time.sleep(random.randint(5, 20) / 10.0)
/external/autotest/client/site_tests/power_SuspendStress/
Dpower_SuspendStress.py74 random.randint(0, self._max_resume_window))
88 self._suspender.suspend(random.randint(0, 3) + self._min_suspend)
/external/python/cpython2/Demo/turtle/
Dtdemo_nim.py31 return random.randint(MINSTICKS, MAXSTICKS)
46 z = random.randint(0,2)
49 rand = random.randint(m > 1, state[z]-1)
/external/autotest/client/site_tests/network_MobileSuspendResume/
Dnetwork_MobileSuspendResume.py7 from random import choice, randint
218 self.suspend_resume(randint(10, 40))
223 time.sleep(randint(1, 30))
/external/autotest/server/site_tests/dummy_FlakyTestServer/
Dflaky_test.py12 if random.randint(0,1):
/external/autotest/client/tests/flaky_test/
Dflaky_test.py12 if random.randint(0,1):
/external/autotest/client/bin/self-test/tests/
D110-barrier-unordered-10x11 time.sleep(random.randint(1, 5))
D113-barrier-unordered-100x11 time.sleep(random.randint(1, 5))
D111-barrier-unordered-20x11 time.sleep(random.randint(1, 5))
D112-barrier-unordered-40x11 time.sleep(random.randint(1, 5))
/external/libmojo/third_party/catapult/devil/devil/android/
Ddevice_temp_file.py32 random_hex = hex(random.randint(0, 2 ** 52))[2:]
/external/python/cpython2/Lib/email/
Dutils.py187 randint = random.getrandbits(64)
193 msgid = '<%d.%d.%d%s@%s>' % (timeval, pid, randint, idstring, idhost)
/external/autotest/client/site_tests/power_CheckAfterSuspend/
Dpower_CheckAfterSuspend.py57 time.sleep(random.randint(0, 3))
/external/python/cpython2/Demo/pdist/
Dsecurity.py26 return random.randint(100, 100000)
/external/chromium-trace/catapult/devil/devil/android/
Ddevice_temp_file.py39 random_hex = hex(random.randint(0, 2 ** 52))[2:]

123