/external/python/cpython3/Modules/_decimal/tests/ |
D | 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 …]
|
D | 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 …]
|
D | 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)
|
D | deccheck.py | 939 context.Emin = random.randrange(-1000, 0) 940 context.Emax = random.randrange(prec, 1000) 949 context.capitals = random.randrange(2) 951 context.clamp = random.randrange(2) 1037 fmt1 = rand_format(chr(random.randrange(0, 128)), 'EeGgn') 1050 fmt1 = rand_format(chr(random.randrange(0, 128)), 'Ff%') 1066 n = random.randrange(10) 1095 c.Emax = random.randrange(1, exprange+1) 1096 c.Emin = random.randrange(-exprange, 0) 1098 c.prec = random.randrange(1, maxprec+1) [all …]
|
/external/python/cpython2/Demo/curses/ |
D | rain.py | 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
|
/external/python/cpython2/Lib/test/ |
D | 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)
|
D | 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)
|
D | 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) 186 data = [(random.randrange(2000), i) for i in range(1000)] [all …]
|
D | 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))
|
D | sortperf.py | 47 i = random.randrange(n) 100 i1 = random.randrange(n) 101 i2 = random.randrange(n) 112 L[random.randrange(n)] = random.random()
|
D | test_random.py | 161 self.assertEqual(r.randrange(1000), value) 203 self.assertRaises(UserWarning, self.gen.randrange, 2**60) 247 r = self.gen.randrange(span) 254 start = self.gen.randrange(2 ** (i-2)) 255 stop = self.gen.randrange(2 ** i) 258 self.assertTrue(start <= self.gen.randrange(start, stop) < stop) 263 set([self.gen.randrange(start,stop) for i in xrange(100)])) 425 r = self.gen.randrange(span) 432 start = self.gen.randrange(2 ** (i-2)) 433 stop = self.gen.randrange(2 ** i) [all …]
|
D | test_sort.py | 119 s = [Stable(random.randrange(10), i) for i in xrange(n)] 186 data = [(random.randrange(100), i) for i in xrange(200)] 259 data = [(random.randrange(100), i) for i in xrange(200)]
|
D | test_threaded_import.py | 18 x = random.randrange(1, 3)
|
/external/python/cpython3/Lib/test/ |
D | 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)
|
D | test_random.py | 401 randrange = self.gen.randrange 402 k = sum(randrange(6755399441055744) % 3 == 2 for i in range(n)) 467 r = self.gen.randrange(span) 474 start = self.gen.randrange(2 ** (i-2)) 475 stop = self.gen.randrange(2 ** i) 478 self.assertTrue(start <= self.gen.randrange(start, stop) < stop) 483 set([self.gen.randrange(start,stop) for i in range(100)])) 486 rint = self.gen.randrange(0, 10, 2) 488 rint = self.gen.randrange(0, 2, 2) 492 raises = partial(self.assertRaises, ValueError, self.gen.randrange) [all …]
|
D | sortperf.py | 47 i = random.randrange(n) 100 i1 = random.randrange(n) 101 i2 = random.randrange(n) 112 L[random.randrange(n)] = random.random()
|
D | test_heapq.py | 93 data = [random.randrange(2000) for i in range(1000)] 116 data = [random.randrange(2000) for i in range(1000)] 129 data = [random.randrange(2000) for i in range(1000)] 166 size = random.randrange(50) 167 data = [random.randrange(25) for i in range(size)] 180 for i in range(random.randrange(25)): 182 for j in range(random.randrange(100)): 183 tup = random.choice('ABC'), random.randrange(-500, 500) 216 stream = random.randrange(4) 217 x = random.randrange(500) [all …]
|
D | test_buffer.py | 20 from random import randrange, sample, choice 158 x = randrange(*fmtdict[mode][char]) 192 nmemb = randrange(2, 10) # number of struct members 494 ndim = randrange(maxdim+1) 499 nitems = randrange(1, 16+1) 501 offset = -itemsize if randrange(2) == 0 else memlen 505 n = randrange(100) 513 shape[i] = randrange(minshape, maxshape+1) 518 n = randrange(100) 522 strides[ndim-1] = itemsize * randrange(-maxstride, maxstride+1) [all …]
|
/external/libkmsxx/py/tests/ |
D | 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/autotest/client/common_lib/cros/manual/ |
D | meet_helper.py | 161 test_volume = random.randrange(MIN_VOL, MAX_VOL) 175 transit_volume = current + random.randrange(1, step) 195 transit_volume = current - random.randrange(1, step)
|
/external/python/cpython3/Lib/turtledemo/ |
D | forest.py | 15 from random import randrange 19 return randrange(-n,n+1)
|
/external/autotest/server/site_tests/enterprise_CFM_Test/ |
D | enterprise_CFM_Test.py | 54 min_meetings = random.randrange(-1, self.gpio_min_meets) 117 min_meetings = random.randrange(-1, self.reboot_min_meets) 592 dup_test = max(1, random.randrange(0, nof_times)) 594 self.action_config.insert(max(1, random.randrange(-1, 604 dup_test = max(1, random.randrange(0, nof_times)) 606 self.action_config.insert(max(0, random.randrange(-1, 844 time.sleep(random.randrange(0, test_config['loop_timeout'])) 915 time.sleep(random.randrange(test_config['min_timeout'],
|
/external/python/jinja/src/jinja2/ |
D | utils.py | 7 from random import randrange 254 for idx, _ in enumerate(range(randrange(min, max))): 264 if idx - randrange(3, 8) > last_comma: 269 if idx - randrange(10, 20) > last_fullstop:
|
/external/python/jinja/tests/ |
D | test_utils.py | 168 m = random.randrange(20, 99) 175 m = random.randrange(21, 100)
|
/external/libchrome/third_party/jinja2/ |
D | utils.py | 241 from random import choice, randrange 253 for idx, _ in enumerate(range(randrange(min, max))): 263 if idx - randrange(3, 8) > last_comma: 268 if idx - randrange(10, 20) > last_fullstop:
|