Math quiz problem

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)

Here are two more value procedures to help you.
A factor of a number is a smaller number that can divide into the number with 0 remainder.
A prime number has only itself and 1 as factors.
A composite number is a number that is not a prime number (has more than 2 factors).