From: Hammed Malik Date: 2005-12-02T05:07:02+09:00 Subject: Re: need some Ruby magic ------=_Part_9843_32078302.1133467615836 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline excellent! thanks. On 01/12/05, Jim Weirich wrote= : > > hammed wrote: > > I'd like to sort collections randomly. This is what I tried first: > > > > my_array.sort { |a,b| rand(2) } > > my_array.sort_by { rand } > > -- > Posted via http://www.ruby-forum.com/. > > ------=_Part_9843_32078302.1133467615836--