I would like to measure performance between these methods, especially for amount < length/10. I have a feeling that sample_indicies_inplace will beat sample_inplace since they both require at least one pass of the whole array (for sample_indicies_inplace, it requires it to construct the indices).