From: Damien WYART Date: 2001-10-10T00:08:40+09:00 Subject: [ruby-talk:22317] Re: [Newbie] Switching from Perl : suffling * Joerg Plate in comp.lang.ruby: > class Array > def shuffle > last = self.size > each_index { > |i| j=last-i; > k=rand(last)+1; > self[i], self[o] = self[o], self[i] } > end Nice. Thanks ! And thanks for all these very instructive replies from various people. -- DW