Description
After testing an array of equal values, TestIndexedSort::testAllEqual introduces a min and max value at random intervals:
int diff = r.nextInt(SAMPLE); values[diff] = 9; values[(diff + r.nextInt(SAMPLE >>> 1)) % SAMPLE] = 11;
The max value can overwrite the min value and produce a spurious failure.