#include <iostream>
#include <random>
#include <vector>
int main() {
	using namespace std;
	int const LARGURA = 10;
	int const ALTURA  =  5;
	
	mt19937 gen(666); // gerador de números aleatórios mersenne twister
    uniform_int_distribution<> dis(0, 1); //distribuição linear entre 0 e 1
	
	vector<vector<int>> M;
    M.resize(ALTURA);
    for(auto & linha : M)
    { 
        linha.resize(LARGURA);
        for(auto & valor: linha)
        {
            valor = dis(gen); //sorteia 
            cout << valor << ' ';
        }
        cout << endl;
    }
}