Converts ribose 1-phosphate to ribose 5-phosphate. Involved in ribose salvage via the pentose phosphate pathway. alpha-D-ribose 1-phosphate = D-ribose 5-phosphate Binds 1 Mg(2+) ion per subunit. Belongs to the phosphohexose mutase family.