Skip to content

Instantly share code, notes, and snippets.

@hkraji
Created March 20, 2014 12:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hkraji/9662303 to your computer and use it in GitHub Desktop.
Save hkraji/9662303 to your computer and use it in GitHub Desktop.
Random Generation for GOT board game
houses = ['Lannister','Stark','Grayjoy','Baratheon','Tyrell','Martel']
players = ['Nera','Asaf','Keno','Aki','Haris','Zaharije']
while !houses.empty? do
puts "#{players.delete_at(rand(players.length))} :: #{houses.delete_at(rand(houses.length))}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment