# include \u0026lt;cstdlib>
# include \u0026lt;iostream>
# include \u0026lt;time.h>
using namespace std;
valorDado
int () {
;
return (rand ()% 6);}
asignarCeros void (int a [] [6] int n, int m){
for(int i=0;i
for(int j=0;j
a[i][j]=0;
}
void asignarAleatorios(int a[][6], int n, int m){
a[valorDado()][valorDado()]++;
}
void imprimir(int a[][6], int n, int m){
cout<<"\nMatriz:\n";
for(int j=0;j
cout<<(j+1)<<" ";
cout<
for(int i=0;i
for(int j=0;j
cout< <<" ";
cout<
}
}
void llenarMatriz(int a[][6], int n, int m, int cant){
asignarCeros(a,n,m);
for(int i=0;i
asignarAleatorios (a, n, m);}
print (a, n, m);
} int main () {
srand (time (NULL));
int array [6] [6], row = 6, column = 6, n = 1000;
llenarMatriz (matrix, rows, columns, n);
system ("PAUSE");
return EXIT_SUCCESS;}