sample_n_of(): a useful helper function

You may also like...