// program to display a grid of random 1s and 0s #include #include #include using namespace std; int main() { int N,M; cout << " What size grid (Rows Cols)? "; cin >> N >> M; double probOne; cout << " What initial probability of ones? "; cin >> probOne; // this optional part "seeds" the random number generator int seed; cout << " Random seed value? "; cin >> seed; srand(seed); vector > table(N,M); // fill 2D vector with random zeros and ones int i,j; i=0; while (i