Lines Matching refs:random
46 import random
92 # caches. The traffic generators switch between random address streams
104 parser.add_option("-r", "--random", action="store_true",
105 help="Generate a random tree topology")
119 if options.random:
121 tree_depth = random.randint(1, 4)
122 cachespec = [random.randint(1, 3) for i in range(tree_depth)]
123 testerspec = [random.randint(1, 3) for i in range(tree_depth + 1)]
124 print("Generated random tree -c", ':'.join(map(str, cachespec)),
203 # Three states, with random, linear and idle behaviours. The random