title: vb 2010 Generate random numbers without repeating
body: <p>I am able to generate a random number, but what I am unable to do is prevent the random numbers from repeating. I would like it so that there are no duplicates of numbers. This is my code so far,</p>
  
  <pre><code>    Dim rndnumber As Integer
  
      Randomize()
  
      rndnumber = Int(Rnd() * 52) + 1
  
      ListBox1.Items.Add(rndnumber)
  </code></pre>