From: transfire@... Date: 2006-06-19T19:29:52+09:00 Subject: Re: Is it more convenient to have a random_each in ruby stdlib? transfire@gmail.com wrote: > Perhaps... > > class Array > def random_each > ((0...size).to_a.sort_by{rand}).each { |i| > yield self[i] > } > end > end On second though, that still sorts an array of the same size. Hmm... T.