From: Phrogz Date: 2007-08-26T23:20:10+09:00 Subject: Re: sort_by { rand } not working On Aug 26, 7:25 am, Mike Dershowitz wrote: > @teams.each do |t| > @all << ["t",t] > end > #current not working > @all.sort_by { rand } #sort_by doesn't modify the original array, it returns a new one. Try @all = @all.sort_by{ rand }