Updating: using mergesort to do randomization