/external/python/cpython3/Modules/_decimal/tests/ |
randdec.py | 49 from random import randrange, sample 55 if randrange(2): 56 if randrange(2): return '+' 61 return "eE"[randrange(2)] 65 return str(randrange(10**maxprec)) 68 if randrange(2): return '.' 72 if randrange(100) > 60: # integers 74 if randrange(2): 75 intlen = randrange(1, maxprec+1) 84 return str(randrange(maxexp) [all...] |
formathelper.py | 232 i = random.randrange(0, 0x110002) 239 active = sorted(random.sample(range(7), random.randrange(8))) 252 s += str(random.randrange(1, 100)) 257 s += str(random.randrange(100)) 296 active = sorted(random.sample(range(5), random.randrange(6))) 304 s += str(random.randrange(1, 100)) 309 s += str(random.randrange(100)) 324 active = sorted(random.sample(range(5), random.randrange(6))) 329 s += chr(random.randrange(32, 128)) 337 s += str(random.randrange(1, 100) [all...] |
randfloat.py | 24 n, e = random.randrange(lower, upper, 2), k 59 bits = random.randrange(2047*2**52) 94 digits = n + random.randrange(-3*u, 3*u) 109 digits = base + random.randrange(-1000, 1000) 117 digits = random.randrange(dig10) 118 exponent = random.randrange(-400, 400) 132 intpart_len = random.randrange(5) 136 fracpart_len = random.randrange(5) 144 exponent_len = random.randrange(1, 4)
|
/external/curl/tests/python_dependencies/impacket/ |
uuid.py | 17 from random import randrange 23 return pack("IIII", randrange(top), randrange(top), randrange(top), randrange(top))
|
/external/python/cpython2/Demo/curses/ |
rain.py | 5 # somebody should probably check the randrange()s... 8 from random import randrange 17 z = randrange(0, 3) 47 xpos[j] = randrange(0, c) + 2 48 ypos[j] = randrange(0, r) + 2 52 x = randrange(0, c) + 2 53 y = randrange(0, r) + 2
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
test_strtod.py | 120 n, e = random.randrange(lower, upper, 2), k
154 bits = random.randrange(2047*2**52)
188 digits = n + random.randrange(-3*u, 3*u)
203 digits = base + random.randrange(-1000, 1000)
211 digits = random.randrange(dig10)
212 exponent = random.randrange(-400, 400)
226 intpart_len = random.randrange(5)
230 fracpart_len = random.randrange(5)
238 exponent_len = random.randrange(1, 4)
|
sortperf.py | 47 i = random.randrange(n)
100 i1 = random.randrange(n)
101 i2 = random.randrange(n)
112 L[random.randrange(n)] = random.random()
|
test_long_future.py | 198 a = random.randrange(1, M)
199 b = random.randrange(a, 2*a+1)
207 a_bits = random.randrange(1000)
208 b_bits = random.randrange(1, 1000)
209 x = random.randrange(2**a_bits)
210 y = random.randrange(1, 2**b_bits)
|
test_mutants.py | 63 newkey = Horrid(random.randrange(100))
66 target[newkey] = Horrid(random.randrange(100))
73 i = random.randrange(len(keys))
91 self.hashcode = random.randrange(1000000000)
157 test_one(random.randrange(1, 100))
|
test_heapq.py | 75 data = [random.randrange(2000) for i in range(1000)]
98 data = [random.randrange(2000) for i in range(1000)]
111 data = [random.randrange(2000) for i in range(1000)]
141 size = random.randrange(50)
142 data = [random.randrange(25) for i in range(size)]
155 for i in xrange(random.randrange(5)):
156 row = sorted(random.randrange(1000) for j in range(random.randrange(10)))
166 stream = random.randrange(4)
167 x = random.randrange(500) [all...] |
test_threaded_import.py | 6 # randrange, and then Python hangs.
18 x = random.randrange(1, 3)
|
/external/python/cpython2/Lib/test/ |
test_strtod.py | 120 n, e = random.randrange(lower, upper, 2), k 154 bits = random.randrange(2047*2**52) 188 digits = n + random.randrange(-3*u, 3*u) 203 digits = base + random.randrange(-1000, 1000) 211 digits = random.randrange(dig10) 212 exponent = random.randrange(-400, 400) 226 intpart_len = random.randrange(5) 230 fracpart_len = random.randrange(5) 238 exponent_len = random.randrange(1, 4)
|
sortperf.py | 47 i = random.randrange(n) 100 i1 = random.randrange(n) 101 i2 = random.randrange(n) 112 L[random.randrange(n)] = random.random()
|
test_long_future.py | 198 a = random.randrange(1, M) 199 b = random.randrange(a, 2*a+1) 207 a_bits = random.randrange(1000) 208 b_bits = random.randrange(1, 1000) 209 x = random.randrange(2**a_bits) 210 y = random.randrange(1, 2**b_bits)
|
test_mutants.py | 63 newkey = Horrid(random.randrange(100)) 66 target[newkey] = Horrid(random.randrange(100)) 73 i = random.randrange(len(keys)) 91 self.hashcode = random.randrange(1000000000) 157 test_one(random.randrange(1, 100))
|
test_heapq.py | 75 data = [random.randrange(2000) for i in range(1000)] 98 data = [random.randrange(2000) for i in range(1000)] 111 data = [random.randrange(2000) for i in range(1000)] 141 size = random.randrange(50) 142 data = [random.randrange(25) for i in range(size)] 155 for i in xrange(random.randrange(5)): 156 row = sorted(random.randrange(1000) for j in range(random.randrange(10))) 175 stream = random.randrange(4) 176 x = random.randrange(500 [all...] |
test_threaded_import.py | 6 # randrange, and then Python hangs. 18 x = random.randrange(1, 3)
|
/external/python/cpython3/Lib/test/ |
test_strtod.py | 119 n, e = random.randrange(lower, upper, 2), k 153 bits = random.randrange(2047*2**52) 187 digits = n + random.randrange(-3*u, 3*u) 202 digits = base + random.randrange(-1000, 1000) 210 digits = random.randrange(dig10) 211 exponent = random.randrange(-400, 400) 225 intpart_len = random.randrange(5) 229 fracpart_len = random.randrange(5) 237 exponent_len = random.randrange(1, 4)
|
sortperf.py | 47 i = random.randrange(n) 100 i1 = random.randrange(n) 101 i2 = random.randrange(n) 112 L[random.randrange(n)] = random.random()
|
test_heapq.py | 75 data = [random.randrange(2000) for i in range(1000)] 98 data = [random.randrange(2000) for i in range(1000)] 111 data = [random.randrange(2000) for i in range(1000)] 141 size = random.randrange(50) 142 data = [random.randrange(25) for i in range(size)] 155 for i in range(random.randrange(25)): 157 for j in range(random.randrange(100)): 158 tup = random.choice('ABC'), random.randrange(-500, 500) 185 stream = random.randrange(4) 186 x = random.randrange(500 [all...] |
test_random.py | 280 randrange = self.gen.randrange 281 k = sum(randrange(6755399441055744) % 3 == 2 for i in range(n)) 325 # The randrange routine should build-up the required number of bits 330 r = self.gen.randrange(span) 337 start = self.gen.randrange(2 ** (i-2)) 338 stop = self.gen.randrange(2 ** i) 341 self.assertTrue(start <= self.gen.randrange(start, stop) < stop) 346 set([self.gen.randrange(start,stop) for i in range(100)])) 349 rint = self.gen.randrange(0, 10, 2 [all...] |
/external/autotest/client/common_lib/cros/manual/ |
meet_helper.py | 164 test_volume = random.randrange(MIN_VOL, MAX_VOL) 178 transit_volume = current + random.randrange(1, step) 198 transit_volume = current - random.randrange(1, step)
|
/external/libkmsxx/py/tests/ |
big_fb.py | 101 self.speed_y = random.randrange(1, 10, 1) 102 self.dir_y = random.randrange(-1, 3, 2) 118 r = random.randrange(255) 119 g = random.randrange(255) 120 b = random.randrange(255) 148 self.speed_y = random.randrange(1, 10, 1)
|
/external/python/cpython3/Lib/turtledemo/ |
forest.py | 15 from random import randrange 19 return randrange(-n,n+1)
|
/external/autotest/server/site_tests/enterprise_CFM_VolumeChange/ |
enterprise_CFM_VolumeChange.py | 40 cfm_volume = random.randrange(2, 100, 1)
|