Answers for "random 4 unique number vb.net"

VBA
0

get unique random number in vb.net

Dim numbers = Enumerable.Range(0, 11).ToList()
Dim RandomClass As New Random()
Dim RandomIndex As Integer
For counter As Integer = 1 To 5
    RandomIndex = RandomClass.Next(0, numbers.Count)
    MsgBox(numbers(RandomIndex))
    numbers.RemoveAt(RandomIndex)
Next
Posted by: Guest on November-28-2020

Code answers related to "random 4 unique number vb.net"

Code answers related to "VBA"

Browse Popular Code Answers by Language