rails/rails — pull request #13543 by jankeesvw (2013-12-30 17:06:52+00:00)
Title: Add #sample to Range

In my last project I needed a simple way to get a random sample from a Range, this patch adds this as a core extension.

```ruby
(0..10).sample #=> 5
(0..10).sample #=> 4
(0..10).sample #=> 9
```

This is my first pull request for Rails, please let me know if I can improve this.