Lines Matching refs:choice
131 s = random.choice(signs)
133 s += ''.join(random.choice(digits) for _ in range(intpart_len))
134 if random.choice([True, False]):
137 s += ''.join(random.choice(digits)
141 if random.choice([True, False]):
142 s += random.choice(['e', 'E'])
143 s += random.choice(signs)
145 s += ''.join(random.choice(digits)
234 l = random.choice(TESTCASES[:6])
235 yield random.choice(l)
241 l1 = random.choice(TESTCASES)
242 l2 = random.choice(TESTCASES)
243 yield random.choice(l1), random.choice(l2)
247 l1 = random.choice(TESTCASES)
248 l2 = random.choice(TESTCASES)
249 l3 = random.choice(TESTCASES)
250 yield random.choice(l1), random.choice(l2), random.choice(l3)