Skip to content

Instantly share code, notes, and snippets.

@jeremywrowe
Created February 4, 2011 02:06
Show Gist options
  • Save jeremywrowe/810627 to your computer and use it in GitHub Desktop.
Save jeremywrowe/810627 to your computer and use it in GitHub Desktop.
number generator for super bowl :)
@amount = 9
@amount = ARGV[0].to_i if ARGV[0]
@randomize = rand(1000)
x_array = []
y_array = []
@amount.times do |i|
x_array << i+1
y_array << i+1
end
@randomize.times do
x_array.shuffle!
y_array.shuffle!
end
puts ("Shuffled %d times\n\n" % @randomize)
puts " " + x_array.join(" ")
puts y_array.join("\n\n")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment