Generating Unambiguous Elementary Math Puzzles in JavaScript: Whole-Number Invariants for Input-Output Tables
Writing a random arithmetic problem generator sounds like a 20-line weekend exercise—until a 4th grader sits in front of it and hits a division rule with a remainder, a negative output, or a table where two different rules fit every visible row.