added randomNum tool to get a random number from a range