add createRandomSelection for indexes