Re: Randomizing an Array?


#1

From: Gavin K.

You might search the mailing list archive on this topic if
‘true’ randomness (or close to it) is important to you.

Nevermind, I did it for you. Here’s the thread:
http://rubyurl.com/5v8

Here’s batsman’s web page about it in depth (referenced in the first
post in the thread):
http://eigenclass.org/hiki.rb?sort_by+rand+is+biased

And here’s a wiki page discussing other methods (referenced in
Mauricio’s post):
http://www.rubygarden.org/ruby?ArrayShuffle


#2

Gavin K. wrote:

And here’s a wiki page discussing other methods (referenced in
Mauricio’s post):
http://www.rubygarden.org/ruby?ArrayShuffle

Hey, Thank you again! You have been an immense help in this. :slight_smile: