Closed Empact closed 10 years ago
Enjoyed this script of yours, and made a few fixes:
Note I'm using some ruby 1.9.3 constructs here (e.g. hash keys, #sample), so this breaks backwards compatibility for the 1.8 folks.
Looks good, except in 57a7be7 sample doesn't pop elements off, so you run the risk of repeats.
Should be fixed now. :-)
Enjoyed this script of yours, and made a few fixes:
Note I'm using some ruby 1.9.3 constructs here (e.g. hash keys, #sample), so this breaks backwards compatibility for the 1.8 folks.