BEGIN { for (i=1; i<=1000; i++) { n = int(10000*rand()) print n com = "./sim4 -v prog=makelineup -v remake=0 -v iters="n" | grep 'runs per game'" system(com) } }