6.1
#include <iostream>
#include <ctime>
#include <random>
using namespace std;
mt19937 gen(time(0));
uniform_int_distribution<> uid(0, 9);
int main()
{
int a[5][5];
for (int i = 0; i < 5; ++i) {
for (int j = 0; j < 5; ++j) {
a[i][j] = uid(gen);
cout << a[i][j] << " ";
}
cout << endl;
}
return 0;
}