How do I load a vector from a random number function?

How can I load a vector variable using a random number function?
I have got it to work but it just puts one number in all five places.

number.push_back(getNum(int, int));

Thank you for any help!
Topic archived. No new replies allowed.