never use 1 indexed in randomPairs