Lines Matching refs:random
32 import os, sys, locale, random
229 # Return random fill character.
232 i = random.randrange(0, 0x110002)
236 # Generate random format strings
239 active = sorted(random.sample(range(7), random.randrange(8)))
245 s += random.choice('<>=^')
248 s += random.choice('+- ')
252 s += str(random.randrange(1, 100))
257 s += str(random.randrange(100))
261 s += random.choice(c)
265 # separator. Fall back to random where the runtime would become excessive.
277 type = random.choice(('', 'E', 'e', 'G', 'g', 'F', 'f', '%'))
293 # Generate random format strings with a unicode fill character
296 active = sorted(random.sample(range(5), random.randrange(6)))
299 s += random.choice('<>=^')
302 s += random.choice('+- ')
304 s += str(random.randrange(1, 100))
309 s += str(random.randrange(100))
313 s += random.choice(c)
316 # Generate random format strings with random locale setting
320 loc = random.choice(locale_list)
324 active = sorted(random.sample(range(5), random.randrange(6)))
329 s += chr(random.randrange(32, 128))
330 s += random.choice('<>=^')
333 s += random.choice('+- ')
337 s += str(random.randrange(1, 100))
340 s += str(random.randrange(100))