mardi 23 février 2016

Generate a Random Number That Evenly Divides into Another in C#

I am making a quiz that quizzes a user on basic arithmetic skills. The problem I have is that I don't want to be able to generate a division question that allows real numbers. I want all answers to have integer answers.

How can I randomly generate a number between p and q that evenly divides into n?




Aucun commentaire:

Enregistrer un commentaire