我正在尝试获取最大的数字,但是我不想使用LINQ。
static void Main(string[] args) {
int defineArray = 0;
int numberTobefilled = 0;
Console.WriteLine("how large do you want the array");
defineArray = int.Parse(Console.ReadLine());
int[] arrAydefined = new int[defineArray]; // Array size in place
Random rnd = new Random(); // set to random////add some seed
for (int i = 0; i < arrAydefined.Length; i++) {
numberTobefilled = rnd.Next(defineArray);
Console.WriteLine(" [{0}] ", numberTobefilled);
}