added random selection for get-new-indexes