Generate random number in specific range