From: Martin DeMello Date: 2004-12-21T02:52:04+09:00 Subject: Re: [ANN] rand.rb 0.9: Random access methods for Enumerables Ilmari Heikkinen 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