Private Sub Command1_Click()
a = Int(Rnd * 10)
b = Int(Rnd * 10)
c = Int(Rnd * 4)
If c = 0 Then
Text1.Text = a & "+" & b & "="
ElseIf c = 1 Then
Text1.Text = a & "-" & b & "="
ElseIf c = 2 Then
Text1.Text = a & "*" & b & "="
Else
Text1.Text = a & "/" & b & "="
End If
End Sub