Added method to randomly resample sequences