You can indeed generate many nonsensical problems. Generating ones which require interesting and non-trivial mathematics is much more difficult.