in reply to RE (tilly) 4: Fisher-Yates Shuffle
in thread Fisher-Yates Shuffle
The above "correction" applies to how many elements wind up where they started. The algorithm commentary applies to how many times you make a useless swap. Those are different things. *sigh*
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Silly Tilly :-)
by Adam (Vicar) on Aug 30, 2000 at 20:45 UTC | |
by tilly (Archbishop) on Aug 30, 2000 at 21:09 UTC |