Randomize in-place