I1: generates a random number