I\'ve got a vector that I\'m trying to fill up with random numbers. I keep running into an issue however that the vector mostly outputs 0 each time that I\'m running it (it
You are calling the wrong index in your vector
Try doing:
cout << myVector[i] << endl;
else you will risk running off the end of your vertex for the first 20 or so iterations.
You can also call .back() on your vector to get the last item in the vector.