Randomly selects the members of smaller and bigger partition.