On Monday 30 April 2007 02:55, Dan Zwell wrote:
> > l = a.length
> > a.each_index { |x| a[x] = a[rand(l)] }
> >

a.each_index { |x| r= rand(l); a[x], a[r] = a[r], a[x] }

-- 
Marcin Raczkowski
---
Friends teach what you should know
Enemies Teach what you have to know