Add rnd_number to sample selection