Fix particle resampling

If we only use one value of r, when we wrap around the pool, we'll pick the
same set of states we picked in the previous pass. Fix this to randomly sample
the value of r in each pass.