title: How to generate random numbers from a range in c#
body: <p>So I need to generate random numbers based on user set parameters, and make a basic math expression. They have 3 options; single, double, or triple digit numbers. So based on that I need to generate a random number from 0 to 9, 0 to 99, and 0 to 100.</p>
  
  <p>So far I've read about the <code>Random</code> class. This is my poor attempt:</p>
  
  <pre><code>Random rnd = new Random();
  int value = 0;
  
  if (digits == 1)
  {
      rnd.Next(value);
      q1Lbl.Text = value.ToString();
  }
  </code></pre>