repToRan, ranToRep