[RUtil] Fix bug in !rand caused when a > b