Skip to content

Instantly share code, notes, and snippets.

@arosh
Created June 24, 2011 15:02
Show Gist options
  • Save arosh/1044962 to your computer and use it in GitHub Desktop.
Save arosh/1044962 to your computer and use it in GitHub Desktop.
SuperCon2011 Test Case Maker
#!/usr/bin/ruby -Ku
m = 200
n = 200
k = 200
puts "#{m}, #{n}, #{k}"
(n + 1).times do
m.times do
print "#{(rand * 21).to_i}, "
end
print "\n"
end
(m + 1).times do
n.times do
print "#{(rand * 21).to_i}, "
end
print "\n"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment