Skip to content

Instantly share code, notes, and snippets.

@huonw
Created May 2, 2012 14:58
Show Gist options
  • Save huonw/2577207 to your computer and use it in GitHub Desktop.
Save huonw/2577207 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python3
import sys, random
incrs = 10000
try:
processes = int(sys.argv[1])
counters = int(sys.argv[2])
except:
counters = 100
processes = 100
l = list(range(counters)) * ((int(processes/counters) + 1) * 5)
random.shuffle(l)
print(counters)
print(processes)
for i in range(processes):
print('5')
print(incrs, 'I', l[5*i])
print(incrs, 'I', l[5*i + 1])
print(incrs, 'I', l[5*i + 2])
print(incrs, 'I', l[5*i + 3])
print(incrs, 'I', l[5*i + 4])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment