6 ms·
The algorithms are different. OP's Fisher-Yates is correct, the only mistake is the last superfluous iteration.
by readerrrr 12y ago
The algorithms are different. OP's Fisher-Yates is correct, the only mistake is the last superfluous iteration.