[NBLUG/talk] Request for help--how to program shuffling
Andru Luvisi
luvisi at andru.sonoma.edu
Tue May 20 09:29:00 PDT 2003
On Tue, 20 May 2003, Andru Luvisi wrote:
[snip]
> Here is a standard way to shuffle an array. Sorry, I can't remember this
> algorithm's official name and my references are at work. If you are
> creating an online casino you will want a much better random number
> generator.
[snip]
It is the Fisher/Yates shuffle. See Knuth's The Art Of Computer
Programming, volume 2 page 145 and the Perl Cookbook page 121.
Andru
--
Andru Luvisi, Programmer/Analyst
Quote Of The Moment:
Heisenberg may have been here.
More information about the talk
mailing list