Random.Next Method (Int32, Int32) returns a random number within a specified range.
Module Example Public Sub Main() Dim rnd As New Random()
Console.WriteLine("20 random integers from -100 to 100:")
For ctr As Integer = 1 To 20
Console.Write("{0,6}", rnd.Next(-100, 101)) If ctr Mod 5 = 0 Then Console.WriteLine()
Next