Generate random number.