Skip to content

Instantly share code, notes, and snippets.

@nilium
Created July 13, 2009 23:32
Show Gist options
  • Save nilium/146527 to your computer and use it in GitHub Desktop.
Save nilium/146527 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby -wKu
last = "eelhovercraft"
list = ["Nilium", "plash", "blanko", "eelhovercraft"] - [last]
order = []
order << list[rand(3)]
list.delete(order.last)
list << last
order << list[rand(3)]
list.delete(order.last)
order << list[rand(2)]
list.delete(order.last)
order << list[0]
puts order
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment