title: Generating random numbers 1-100
body: <p>I need to generate random numbers from 1 to 100 and I know how to do that part... </p>
  
  <p>I need to ask user how many numbers he wants to generate(if he says 5  the program needs to generate 5 numbers from 1 to 100). I only now how to make a fixable amount by adding new int's in a list.</p>
  
  <p>I did achieve that before, but then i couldn't make it work, so it would write average of those numbers and min+max value.</p>
  
  <p>Here is my code below:</p>
  
  <pre><code>Random k = new Random(); 
  //here i added in the same way other variables and put them in a list
  int j = k.Next(100);
  
  Console.WriteLine("");
  double[] list1 = {j}; 
  double povp = list1.Average();
  Console.WriteLine(povp);
  
  Console.WriteLine("");
  Console.WriteLine(list1.Max()); 
  Console.WriteLine("");
  Console.WriteLine(list1.Min());
  
  Console.ReadKey();
  </code></pre>