inkedgfx
Well-known member
I know ...me again.....
I have a listbox which i fill with numbers from a text file(coded solution on my own)
now I have a listbox full of numbers...I remove the duplicates...here is the part I am stuck on...
I need to take the numbers in the listbox and pick 6 random numbers from the numbers in the listbox...here is what I have so far.I use the msgbox to text and show what i have...I dont know where to go from here....any help is appreciated as always
InkedGFX
I have a listbox which i fill with numbers from a text file(coded solution on my own)
now I have a listbox full of numbers...I remove the duplicates...here is the part I am stuck on...
I need to take the numbers in the listbox and pick 6 random numbers from the numbers in the listbox...here is what I have so far.I use the msgbox to text and show what i have...I dont know where to go from here....any help is appreciated as always
Dim i As Integer
Dim x As Integer
Dim arr As New ArrayList
Dim r As New Random()
Dim intNumbers() As Integer
Try
For x = 0 To 5
For i = 0 To ListNumbers.Items.Count - 1
arr.Add(ListNumbers.Items.Item(i))
Next i
MsgBox(intNumbers)
Next x
Catch ex As Exception
MsgBox("ERROR! , " & ex.Message)
End Try
InkedGFX