Hacker News new | ask | show | jobs
by rwmj 3782 days ago
IIUC that's covered in the paper, as bozo-sort (or bozo-sort+ if the two random numbers are different).