vb.net get random number between 1 and 10 code example Example: random number generator vb.net Dim randNum As New Random MsgBox(randNum.Next(1, 100))