Using pointer in a function
Generating a random number