title: Generating an array of numbers based off the smallest numbers in other arrays?
body: <p>How do I go about making an array of numbers based off of the lowest values generated in other arrays? I have made an array that generates numbers between -1000 and 1000 and calculates the the lowest number from that; my problem comes after that I believe. I cant figure out how to add the lowest value to the "lowestNumbers" array.</p>
  
  <pre><code>static void Main(string[] args)
      {
          //ints and arrays used in the program.
          int min = -1000;
          int max = 1000;
          int currentMinimum = 1000;
          int[] numbers = new int[10];
          int[] lowestNumbers = new int[numbers.Length];
          Random rndm = new Random();
  
          //Using a loop to create random numbers within numbers array between -1000 and 1000.
          for (int i = 0; i &lt; lowestNumbers.Length; i++)
          {
              if (i &lt; lowestNumbers.Length)
              {
                  for (int index = 0; index &lt; numbers.Length; index++)
                  {
                      if (index &lt; numbers.Length)
                      {
                          numbers[index] = rndm.Next(min, max);
                      }
                  }
  
                  for (int index = 0; index &lt; numbers.Length; index++)
                  {
                      if (numbers[index] &lt; currentMinimum)
                          currentMinimum = numbers[index];
                  }
              }
              lowestNumbers[i] = currentMinimum;
          }
  
          foreach (int value in lowestNumbers)
              Console.WriteLine(value);
          Console.WriteLine("//////////////////////////////////////////////////////////////////////////");
      }
  }
  </code></pre>
  
  <p>}</p>