in reply to Re: A bad shuffle
in thread A bad shuffle
Actually, the original "naive_shuffle" is not a Fisher-Yates shuffle, it is a "naive shuffle" implementation. The OP's analysis is correct.
His final algorithm, however, is a correct Fisher-Yates implementation.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: A bad shuffle
by jdporter (Paladin) on Mar 21, 2005 at 03:29 UTC | |
by tlm (Prior) on Mar 22, 2005 at 02:41 UTC |
In Section
Meditations