Dan Zwell wrote:
> Non-ordered isn't the same as randomized. 

I apologize mos sincerely for posting actual code but what about this 
for randomizing:

def arr_rand(ar)
  arr = []
  while ar.length > 0 do
    x = rand(ar.length)
    arr << ar[x]
    ar.delete_at(x)
  end
  arr
end

data = (0..9).to_a

10.times do
  data = arr_rand(data)
  p data
end
-- 
Posted via http://www.ruby-forum.com/.