resample_factor function

Draw uniform random (sub)sample at the group level