4 ms·
As a sort of TL;DR: it's basically like selection sort but instead of selecting the sort-compliant choice among the remaining ones, you ask the RNG and pick a r
by namibj 1y ago
As a sort of TL;DR: it's basically like selection sort but instead of selecting the sort-compliant choice among the remaining ones, you ask the RNG and pick a random one.
- duskwuff 1y agoHowever, note that using a random function as the comparator for a sort function does not generally result in an unbiased shuffle.