how can i do this ? i new how to but i forgot and i need it right now
Printable View
how can i do this ? i new how to but i forgot and i need it right now
Sorry NM i got it
Code:Dim RandomClass As New Random()
Dim RandomNumber As Integer
RandomNumber = RandomClass.Next()
RandomNumber = RandomClass.Next(textbox1.Text, textbox2.Text)
TextBox3.Text = RandomNumber
vb.net Code:
Public Function GetRandomNum Dim myRandom as New Random dim RandomNumber as Integer = myRandom.Next('first value, 'sencond value) 'both as integers Return RandomNumber End Function