title: Random number generator with no duplicates
body: <p>Basically I'm creating a program to randomly generate 6 unique lottery numbers so there is no duplicates in the same line, here is the code I have so far...</p>
  
  <pre><code>        //Generate 6 random numbers using the randomiser object
  
          int randomNumber1 = random.Next(1, 49);
          int randomNumber2 = random.Next(1, 49);
          int randomNumber3 = random.Next(1, 49);
          int randomNumber4 = random.Next(1, 49);
          int randomNumber5 = random.Next(1, 49);
          int randomNumber6 = random.Next(1, 49);
  
          textBox1.Text = randomNumber1.ToString();
          textBox2.Text = randomNumber2.ToString();
          textBox3.Text = randomNumber3.ToString();
          textBox4.Text = randomNumber4.ToString();
          textBox5.Text = randomNumber5.ToString();
          textBox6.Text = randomNumber6.ToString();
  
      }
  </code></pre>
  
  <p>I'm getting random numbers but sometimes there is the same number on the same line, how do I make each number unique????</p>
  
  <p>Thanks in advance</p>