Silverwolf
New Member
This is what I have;
If optDive = True Then
lblNum1.Caption = Empty
lblNum2.Caption = Empty
lblNum1.Caption = Int((100 - 1) * Rnd + 1)
lblNum2.Caption = Int((10 - 1) * Rnd + 1)
End If
I need the program to check if Num1 / Num2 gives an answer that includes decimals, and if so, to loop the above until such a time as the answer will be an integer. Any ideas? (tried a few different methods, but can't seem to come up with the appropriate coding)
If optDive = True Then
lblNum1.Caption = Empty
lblNum2.Caption = Empty
lblNum1.Caption = Int((100 - 1) * Rnd + 1)
lblNum2.Caption = Int((10 - 1) * Rnd + 1)
End If
I need the program to check if Num1 / Num2 gives an answer that includes decimals, and if so, to loop the above until such a time as the answer will be an integer. Any ideas? (tried a few different methods, but can't seem to come up with the appropriate coding)