Changed getRndR to inclusive