From: Paul Date: 2007-08-31T02:30:04+09:00 Subject: Re: Need help randomly selecting unique values from an array Excellent! That's amazingly simple! (and I never would have figured that out) It's just what I need. Thanks. On Aug 30, 12:33 pm, Sebastian Hungerecker wrote: > foo[1..-1].sort_by {rand}.first(n) > where n is a number between 1 and 3. > > HTH, > Sebastian