Implementing the random number activity