Moved RandInt to a library RandomNumber. Refactored individual uses of randInt accordingly