From: Daniel Waite Date: 2007-01-10T04:34:57+09:00 Subject: Re: Randomizing an Array? Florian Frank wrote: > Don't do this, better use (1..10).sort_by { rand }. Your version is > equivalent to (1..10).sort { 1 } and *always* creates the same > permutation for this array. It's random for me. Both work. -- Posted via http://www.ruby-forum.com/.