Change dataSample to generate indices of random pair using list of values