Improve getRandomInt and add more tests