From: seebs@... (Peter Seebach) Date: 2007-04-30T12:02:12+09:00 Subject: Re: sorting by rand? In message , "Rick DeNatale" write s: >I believe that the "something to that effect was probably: > > x.sort_by {rand} Yes. >Perfectly safe as far as I can see. Ahh! Yes. Profiling it reveals this; it only calls rand once per element. Sane, and efficient. >x.sort {rand} I think I've seen also sort {rand <=> rand}, which is crazy. -s