Dim value As Integer = CInt(Int((9 * Rnd()) + 0))
it always give me the value = 6:ehh:
Printable View
Dim value As Integer = CInt(Int((9 * Rnd()) + 0))
it always give me the value = 6:ehh:
Dont use the old Randomize() function. Use the Random class
vb Code:
Dim myRnd As New Random Dim myVal As Integer = myRnd.Next(1, 11)
That will return integer values between 1 and 10.