use a for loop to loop 5 times.
use rand to generate a random number see:
http://www.cplusplus.com/reference/clibrary/cstdlib/rand.html
add the random number to the vector
Thank you both for the help.
I was trying to use my vector in the main() instead of in the function.
But I changed a couple of things and it works now.
Thank you again!