Generating a list of random numbers

Hello everyone.
I am having some issues with my homework assigment. they are asking me to generate a list of random numbers; no more than 50 (range 1-10). The user(s) need to specify how many he wants in the list. I tried using an array, but it didn't work out as i expected. Although I know it has to be done with an array.

Any clue or help would be appreciated. :D
Duplicate of http://www.cplusplus.com/forum/beginner/180329/
Which has just as much helpful information. Please direct responses to the other thread.

And to OP: Don't crosspost the same message to multiple forums.
Topic archived. No new replies allowed.