Skip to content

Instantly share code, notes, and snippets.

@evanphx
Created August 3, 2015 16:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evanphx/64f12396875a7cd60363 to your computer and use it in GitHub Desktop.
Save evanphx/64f12396875a7cd60363 to your computer and use it in GitHub Desktop.
members = [
"Evan Phoenix",
"Adam Keys",
"Jeff Casimir",
"Chris Morris",
"Ben Scofield",
"Abby Phoenix",
"Marty Haught",
"Andrew Thorp",
"Dave Sims",
"Kelly Fowler",
]
members.sort!
draft_time = "2015/08/07 18:00 EST"
require 'digest/sha1'
d = Digest::SHA1.new
members.each { |m|
d << m
}
d << draft_time
srand d.digest.unpack("Q").first
members.shuffle!
p members
__END__
zero :: ~/tmp> ruby ff.rb
["Kelly Fowler", "Ben Scofield", "Adam Keys", "Abby Phoenix", "Jeff Casimir", "Dave Sims", "Andrew Thorp", "Marty Haught", "Chris Morris", "Evan Phoenix"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment