Trying to generate and track a random number