samp.between function

Shuffles a sequence among groups defined by the input vector