Public Class Form1

Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Label1.Text = Int(Rnd() * 10)
Label2.Text = Int(Rnd() * 10)
Label3.Text = Int(Rnd() * 10)
Label4.Text = Int(Rnd() * 10)
Label5.Text = Int(Rnd() * 10)
Label6.Text = Label1.Text & “-” & Label2.Text & “-” & Label3.Text & “-” & Label4.Text & “-” & Label5.Text
If Label3.Text = 9 Then
Timer1.Enabled = False
Label7.Text = “STOP, Karena Nilai Tengah 9″
End If
End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Timer1.Enabled = True
Label7.Text = ” ”
End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
End
End Sub
End Class