4 ms·
More subtly, don't ignore preconditions of methods. The custom sort method needs to implement several invariants, which the Math.random() approach ignores. Th
by cschneid 17y ago
More subtly, don't ignore preconditions of methods. The custom sort method needs to implement several invariants, which the Math.random() approach ignores. This confuses the hell out of the sort algorithm (in turn, leading to non-random order)
- marze 17y agoIt doesn't seem unreasonable there might be a bias to the 5th position, it would be the position you just finished paying attention to before clicking if your scan from left to right.