public static void Main(string[] args)
{
int[,] arr1 = new int[5, 5];
int[,] arr2 = new int[5, 5];
RandomFill(arr1);
RandomFill(arr2);
Print(arr1);
Print(arr2);
}
public static void RandomFill(int[,] arr)
{
System.Random random = new System.Random();
//...
}
public static void Print(int[,] arr)
{
for (int i = 0; i < 5; ++i)
{
for (int j = 0; j < 5; ++j)
{
System.Console.Write(arr[i, j] + " ");
}
System.Console.WriteLine();
}
System.Console.WriteLine();
}
}