From: Jeff Moore Date: 2008-08-24T09:50:40+09:00 Subject: Re: Array.shuffle/Array.shuffle! Tim Hunter wrote: > Jeff Moore wrote: >> This works but I can't escape the nagging sense that there's a more >> concise approach (for one thing, it looks like there are way too >> transient objects to me). >> >> Anyone have a better idea? > > ary2 = ary.sort_by { rand } "Gone in 60 seconds"... Thanks -- Posted via http://www.ruby-forum.com/.