Random number exercises