------art_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 <jim-keyword-rforum.c88827 / weirichhouse.org> 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/.
>
>

------art_9843_32078302.1133467615836--