这段程序的作用是什么
int[] s = new int[5];
Random number = new Random();
for (int i = 0; i < 5; i++) {
s[i] = number.Next();
Console.WriteLine(s[i]);
}
int max = s[0];
for (int i = 1; i <= 4; i++)
{
if (s[i] >= max)
{
max = s[i];
}
}
Console.WriteLine("最大值为{0}", max);
Console.ReadKey();