From: jwcooper [mailto:[email protected]]
I’m trying to randomize an array…[snip]
randomized = my_array.sort_by{ rand }
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.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs