Generate random math problems