Solved by ptrblck in post #2 
              
              
                No, your usage is wrong and won’t chose 5 out of 100 indices. 
As described in the docs: 

Samples elements randomly from a given list of indices, without replacement. 

which means you are supposed to pass the indices the sampler should randomly sample from as the first argument. 
E.g. if your orig…