added getRandomNumberBetween function