title: Identify duplicates in VB array
body: <p>I need to generate a list of random (integer) elements for an array, then display unique values.  Getting the random elements is easy:</p>
  
  <pre><code>Dim ro As New Random
  Dim numbers(19) As Integer
  Dim counter As Integer
  </code></pre>
  
  <p>Private Sub btnAdd_Click(sender As Object, e As EventArgs) Handles btnAdd.Click</p>
  
  <pre><code>  numbers(counter) = ro.Next(10, 101)
    lstNumEntered.Items.Add(numbers(counter))
    counter += 1
  </code></pre>
  
  <p>OK, now I have to display in another listbox any/all values that are NOT duplicates, so first I have to identify the duplicates.  That's where I'm stuck.....  This solution has to be at the novice level or you will lose me.</p>