jsn / rbot

ruby irc bot (official repo mirror)
http://ruby-rbot.org/
Other
79 stars 36 forks source link

Proper shuffle method from ruby backports. #7

Closed jaythomas closed 11 years ago

jaythomas commented 11 years ago

Uses a more thorough, Knuth-Fisher-Yates shuffle algorithm for shuffling Arrays as Ruby 1.8.7+ does. (Used in uno.rb, etc.)

Oblomov commented 11 years ago

Thanks, cherry-picked.