title: String List from a Textbox Lines
body: <p>how do i get this from the textbox?</p>
  
  <pre><code>oOldList = New List(Of String) From {"1,2", "3,5", "7,9", "12,15", "21,24", "31,36", "41,49", "51,54"}
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code>Public Sub RandomizeList()
    Dim oControl As List(Of Integer)
    Dim oOldList As List(Of String)
    Dim oNewList As List(Of String)
    Dim iRandom As Integer
    Dim oRandom As Random
  
    oControl = New List(Of Integer)
    oOldList = New List(Of String) From {"1,2", "3,5", "7,9", "12,15", "21,24", "31,36", "41,49", "51,54"}
    oNewList = New List(Of String)
    oRandom = New Random
  
    oOldList.ForEach(Sub(Item)
                       Do
                         iRandom = oRandom.Next(oOldList.Count)
  
                         If Not oControl.Contains(iRandom) Then
                           oControl.Add(iRandom)
                           Exit Do
                         End If
                       Loop
  
                       oNewList.Add(oOldList(iRandom))
                     End Sub)
  
    Debug.WriteLine("")
    Debug.WriteLine("Old List")
    Debug.WriteLine("----------")
    oOldList.ForEach(Sub(Item) Debug.WriteLine(Item))
  
    Debug.WriteLine("")
    Debug.WriteLine("New List")
    Debug.WriteLine("----------")
    oNewList.ForEach(Sub(Item) Debug.WriteLine(Item))
  End Sub
  </code></pre>