Created
November 1, 2012 12:01
-
-
Save picandocodigo/3993261 to your computer and use it in GitHub Desktop.
Sorteo entradas Tech Meetup UY 2012
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Como es esto que pones codigo en español...