ptrblck:

RandomSampler with replacement=True should probably do the job, if I understand your suggestion correctly.


Yes, that looks likes what I had in mind for my suggestion to William.
Thanks.
K. Frank