Sorting requires a self-consistent definition of ordering.
The article implies the root of the problem is because it introduces inconsistency in comparisons.
Could this be fixed by generating a random seed, then replacing all calls to Math.random() with Math.random(seed)?
Sorting requires a self-consistent definition of ordering.
The article implies the root of the problem is because it introduces inconsistency in comparisons. Could this be fixed by generating a random seed, then replacing all calls to Math.random() with Math.random(seed)?