Skip to content

Instantly share code, notes, and snippets.

@Will-Sommers
Last active August 29, 2015 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Will-Sommers/4fe13e7a9383318f4bcd to your computer and use it in GitHub Desktop.
Save Will-Sommers/4fe13e7a9383318f4bcd to your computer and use it in GitHub Desktop.
a terrible way to interleave names
FOLKS = %w( john
will
devin
nizar
pat
kai
sharell
hindi
chris
dave
caroline
saimon
)
shuffled_folks = FOLKS.shuffle
reviewers = shuffled_folks.zip(shuffled_folks.rotate)
reviewers.each do |reviewer, reviewee|
puts "#{reviewer} reviews #{reviewee}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment