Contacts between segments in the random-flight model of polymer chains