bmuller/bandit — pull request #1 by nz (2011-11-02 20:42:02+00:00)
Title: Use Array#sample for better Ruby compatibility

`Array#choice` is only defined in Ruby 1.8.7. Future versions define `Array#sample`.

In b8348512 I update the `epsilon_greedy` and `round_robin` players to use `Array#sample`, while monkey-patching `Array` to define an alias for `sample` to `choice` to maintain compatibility in Ruby 1.8.7.