new function: prints a random number