Last active
August 29, 2015 14:18
-
-
Save Will-Sommers/4fe13e7a9383318f4bcd to your computer and use it in GitHub Desktop.
a terrible way to interleave names
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
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