Searched refs:randrange (Results 1 – 25 of 47) sorted by relevance
12
8 from random import randrange17 z = randrange(0, 3)47 xpos[j] = randrange(0, c) + 248 ypos[j] = randrange(0, r) + 252 x = randrange(0, c) + 253 y = randrange(0, r) + 2
120 n, e = random.randrange(lower, upper, 2), k154 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)
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)
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 …]
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))
47 i = random.randrange(n)100 i1 = random.randrange(n)101 i2 = random.randrange(n)112 L[random.randrange(n)] = random.random()
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)]))404 r = self.gen.randrange(span)411 start = self.gen.randrange(2 ** (i-2))412 stop = self.gen.randrange(2 ** i)[all …]
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)]
18 x = random.randrange(1, 3)
177 from random import randrange179 data = [randrange(0, n, 2) for j in xrange(i)]181 elem = randrange(-1, n+1)
251 from random import randrange262 val = (val << 8) | randrange(256)318 randrange)
266 imag1a[random.randrange(100)*1j] = random.randrange(100)*1j
8 from random import choice, randrange993 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))
150 v = random.choice('abc') * random.randrange(10000)
52 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)):
233 from random import choice, randrange245 for idx, _ in enumerate(range(randrange(min, max))):255 if idx - randrange(3, 8) > last_comma:260 if idx - randrange(10, 20) > last_fullstop:
175 def randrange(self, start, stop=None, step=1, _int=int, _maxwidth=1L<<BPF): member in Random242 return self.randrange(a, b+1)892 randrange = _inst.randrange variable
507 return random.randrange(0, 1<<48L) | 0x010000000000L565 clock_seq = random.randrange(1<<14L) # instead of stable storage
43 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
84 cfm_volume = str(random.randrange(2, 100, 1))
327 it = itertools.imap(random.randrange,330 it = itertools.imap(random.randrange, itertools.repeat(tg.num_tests))
5 from random import randrange156 args = ', '.join(['%s[%d]'%(t,randrange(l)) for t,l in tests])168 args = ['%s[%d]'%(t,randrange(l)) for t,l in tests]
168 i1 = random.randrange(low, high)169 i2 = random.randrange(low, high)
359 token = random.randrange(sys.maxint)
117 funcToCall = random.randrange(1, self.lastFuncNum - 1)