Skip to content

Instantly share code, notes, and snippets.

@picandocodigo
Created November 1, 2012 12:01
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 picandocodigo/3993261 to your computer and use it in GitHub Desktop.
Save picandocodigo/3993261 to your computer and use it in GitHub Desktop.
Sorteo entradas Tech Meetup UY 2012
# -*- coding: utf-8 -*-
participantes = ["juanfunez",
"hiroagustin",
"brAzzi64",
"euforiaz",
"mberacochea",
"gclaramunt",
"Vico24v",
"banafederico",
"Andrés",
"Alejandro",
"Carolina"]
participantes.shuffle
10.times do
participantes.shuffle
end
5.times do
ganador = participantes[rand(participantes.length)]
puts "Ganador: #{ganador}"
participantes.delete(ganador)
end
@elcuervo
Copy link

elcuervo commented Nov 1, 2012

Como es esto que pones codigo en español...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment