Fix shuf() to have uniform distribution