News for hackers. Stuff that matters.
[deleted]
Re:Unbiased Randomization with the Fisher-Yates Shuffle by bostik on Monday August 11, 2014 @04:07PM (#8164973)
The difference is one character: the index of the element to swap.

It's subtle.

Re:Unbiased Randomization with the Fisher-Yates Shuffle by readerrrr on Monday August 11, 2014 @04:03PM (#8164950)
The algorithms are different. OP's Fisher-Yates is correct, the only mistake is the last superfluous iteration.