From: thomas.macklin@... Date: 2007-08-28T00:10:05+09:00 Subject: Re: sort_by { rand } not working If you don't mind removing duplicates, Sets are non-ordered, so you could do s = Set.new @all.each do |e| s.add(e) end That will be non-ordered, but duplicates will get stripped. Tom