Home
last modified time | relevance | path

Searched refs:randrange (Results 1 – 25 of 47) sorted by relevance

12

/external/python/cpython2/Demo/curses/
Drain.py8 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/
Dtest_strtod.py120 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)
Dtest_long_future.py198 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)
Dtest_heapq.py75 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 …]
Dtest_mutants.py63 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))
Dsortperf.py47 i = random.randrange(n)
100 i1 = random.randrange(n)
101 i2 = random.randrange(n)
112 L[random.randrange(n)] = random.random()
Dtest_random.py161 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)]))
404 r = self.gen.randrange(span)
411 start = self.gen.randrange(2 ** (i-2))
412 stop = self.gen.randrange(2 ** i)
[all …]
Dtest_sort.py119 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)]
Dtest_threaded_import.py18 x = random.randrange(1, 3)
Dtest_bisect.py177 from random import randrange
179 data = [randrange(0, n, 2) for j in xrange(i)]
181 elem = randrange(-1, n+1)
Dtest_struct.py251 from random import randrange
262 val = (val << 8) | randrange(256)
318 randrange)
Dtest_richcmp.py266 imag1a[random.randrange(100)*1j] = random.randrange(100)*1j
Dtest_collections.py8 from random import choice, randrange
993 p = Counter(dict((elem, randrange(-2,4)) for elem in elements))
995 q = Counter(dict((elem, randrange(-2,4)) for elem in elements))
1013 p = Counter(dict((elem, randrange(0, 2)) for elem in elements))
1014 q = Counter(dict((elem, randrange(0, 2)) for elem in elements))
Dtest_dumbdbm.py150 v = random.choice('abc') * random.randrange(10000)
/external/autotest/server/site_tests/enterprise_CFM_USBPeripheralRebootStress/
Denterprise_CFM_USBPeripheralRebootStress.py52 time.sleep(random.randrange(1, LONG_TIMEOUT))
119 time.sleep(random.randrange(1, IDLE_TIME))
126 for test in range(random.randrange(1, MEETS_BETWEEN_REBOOT)):
/external/libmojo/third_party/jinja2/
Dutils.py233 from random import choice, randrange
245 for idx, _ in enumerate(range(randrange(min, max))):
255 if idx - randrange(3, 8) > last_comma:
260 if idx - randrange(10, 20) > last_fullstop:
/external/python/cpython2/Lib/
Drandom.py175 def randrange(self, start, stop=None, step=1, _int=int, _maxwidth=1L<<BPF): member in Random
242 return self.randrange(a, b+1)
892 randrange = _inst.randrange variable
Duuid.py507 return random.randrange(0, 1<<48L) | 0x010000000000L
565 clock_seq = random.randrange(1<<14L) # instead of stable storage
/external/python/cpython2/Doc/library/
Drandom.rst43 allows :meth:`randrange` to produce selections over an arbitrarily large range.
131 :meth:`randrange` to handle arbitrarily large ranges.
138 .. function:: randrange(stop)
139 randrange(start, stop[, step])
327 >>> random.randrange(0, 101, 2) # Even integer from 0 to 100
/external/autotest/server/site_tests/enterprise_CFM_VolumeChange/
Denterprise_CFM_VolumeChange.py84 cfm_volume = str(random.randrange(2, 100, 1))
/external/clang/utils/
DFuzzTest327 it = itertools.imap(random.randrange,
330 it = itertools.imap(random.randrange, itertools.repeat(tg.num_tests))
/external/clang/utils/ABITest/
DABITestGen.py5 from random import randrange
156 args = ', '.join(['%s[%d]'%(t,randrange(l)) for t,l in tests])
168 args = ['%s[%d]'%(t,randrange(l)) for t,l in tests]
/external/selinux/sandbox/
Dsandbox168 i1 = random.randrange(low, high)
169 i2 = random.randrange(low, high)
/external/python/cpython2/Lib/email/
Dgenerator.py359 token = random.randrange(sys.maxint)
/external/llvm/examples/Kaleidoscope/MCJIT/cached/
Dgenk-timing.py117 funcToCall = random.randrange(1, self.lastFuncNum - 1)

12