Skip to content

Instantly share code, notes, and snippets.

@moskyb
Created December 14, 2015 01:00
Show Gist options
  • Save moskyb/1f826e233d4a832cebe5 to your computer and use it in GitHub Desktop.
Save moskyb/1f826e233d4a832cebe5 to your computer and use it in GitHub Desktop.
# Obviously change the namelist to whoever is in the secret santa draw.
santalist = "Helena, Jason, Jess, Kah, Matai, James, Kavi, Caitlin, Ben, Shan, Launa, Nic".split(", ").shuffle
santalist.each_cons(2) do |pairing|
puts "#{pairing[0]} -> #{pairing[1]}"
end
puts "#{santalist[-1]} -> #{santalist[0]}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment