Created
January 16, 2013 21:17
-
-
Save jessabean/4551056 to your computer and use it in GitHub Desktop.
This file contains 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
santa_list = ["Andrea", "Gloria", "Jessica", "Angela", "Mike N.", "Mike B.", "Chris", "Mom", "Dad"] | |
while !santa_list.empty? do | |
santa = santa_list.shift | |
giftee_list = santa_list.shuffle | |
giftee = giftee_list.shift | |
assignment = {:santa => santa, :giftee => giftee} | |
puts assignment | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment