I need to load a vector of vectors with 0's and 1's randomly and I'm unsure how to calculate a random number generator. This is an intro class so the most simple answer would be the best. My class has touched upon the "rand" function a few times if that helps.
int r = rand() % 2; will produce a 0 or 1. Be sure to #include <cstdlib> . Try to combine that with the information already shared with you in the other thread to come up with a solution.