Return a random number from a given range