I am working on a math quiz app. But I need your help. It is all fine but there are some rules. When the program randomly pick the division , result of the division must be integer etc 27/3, 30/6… How can I make that happen ? Thank you for your help.

Work backwards.

Pick two divisor numbers that when multiplied give you an acceptable dividend.

Alternatively, use these value procedures but beware of prime numbers that have no nontrivial factors …

(the two procedures are draggable)