public static void Main()
Random random = new Random();
Console.Write("How many numbers do you want to generate: ");
int amount = int.Parse(Console.ReadLine());
Console.Write("What is the lowest value you want randomly generated: ");
int low = int.Parse(Console.ReadLine());
Console.Write("What is the highest value you want randomly generated: ");
int high = int.Parse(Console.ReadLine());
int[] numList = new int[amount];
for (int i = 0; i < numList.Length; i++)
numList[i] = random.Next(low, high + 1);
total = total + numList[i];
Console.WriteLine(String.Format("{0,-11}", +numList[i]));
average = total / numList.Length;
Console.WriteLine("The average of these numbers is: " + average);