Merging packages: rename getRandomElements to sample2