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.