Here you go. It uses the system clock for the generation.
When using " Rnd "
Label1.Text = CStr(Int(Rnd() * 10))
add the following under Form1_Load
Randomize()
Example___________________________________________
Public Class Form1
Inherits System.Windows.Forms.Form
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Randomize() 'Here is the KEY to Random
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As_ System.EventArgs) Handles Button1.Click
Label1.Text = CStr(Int(Rnd() * 10)) ' pick 1 of 10 numbers
Label2.Text = CStr(Int(Rnd() * 10))
Label3.Text = CStr(Int(Rnd() * 10))
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
End
End Sub
End Class
Good Luck,