Re: Randomizing an Array?

From: jwcooper [mailto:[email protected]]

I’m trying to randomize an array…[snip]

randomized = my_array.sort_by{ rand }

Gavin K. wrote:

From: jwcooper [mailto:[email protected]]

I’m trying to randomize an array…[snip]

randomized = my_array.sort_by{ rand }

Thank you so much! It worked perfectly!

I need to keep reminding myself that there is always a simpler solution
with Ruby. I still have the Java mindset.