Lines Matching defs:random
8 import random
172 # Generate 10 MiB worth of random, and expand it by repeating it.
175 data = random.randbytes(_1M * 10)
510 import random
511 # Testing on 17K of "random" data
518 # generate random data stream
521 gen = random.WichmannHill()
525 gen = random.Random()
528 gen = random
538 self.assertEqual(expanded, data, "17K random source doesn't match")
554 random.shuffle(words)
874 def choose_lines(source, number, seed=None, generator=random):