new_sample function

Generate particles and select one to be the new sample