title: Random Number Generator VB.NET For loop
body: <p>I want to generate a list of random numbers between 1 and 10 in a for loop that are randomly generated, they can be duplicates. My problem at the moment is that if I use say use: </p>
  
  <pre><code>Dim value As Integer = CInt(Int((6 * Rnd()) + 1))
  Dim index As Integer
  For index = 0 to 9 
      Console.writeline(value)
  Next
  </code></pre>
  
  <p>This generates a random number to begin with but then uses the same number for the rest of the loop. I am a novice to programming sorry so I may not understand anything too technical but I'll give it a go. Thanks for any help.</p>