mardi 9 février 2021

Random integer range 0 to 100, sum of results also cant be over 100

So the generator ask "what is 40+20" user enters 60 so its valid, if the generator prints out 80+80 the answer would be aver 160 but its not suppose to be over 100, how would I cap the the random numbers so the sums wont be over 100?

Aucun commentaire:

Enregistrer un commentaire