Ilmari Heikkinen <kig / misfiring.net> wrote:
> 
> arr = (1..10).to_a
> arr.pick # => 3

When I've needed this, I've found it more useful to define
Array#pick(n=1) to allow for picking a set of several elements (e.g. a
scrabble rack, an hand of cards etc)

martin