Code:
Dim RandomWordNumber as Integer
Private Sub cmdShowWord_Click()
'Generate a random number
RandomWordNumber = Int(6 * Rnd + 1)
'See which number is for which word and change the label
If RandomWordNumber = 1 Then
lblWord.Caption = "Teacher"
End If
Leave a comment: