Generate basic math problems with pseudo-randomness and parameters