helper method to sample without replacement
Authored by: thibautd 2013-12-03
Parent: [r26998]
Child: [r27000]