I'm trying to generate a sequence of random numbers where each number in the sequence is random. The language of choice is C++.

Example:

Generate 100 different numbers between 1-100.

I plan to store them in a respectively-size array. I know I could generate a number and check the whole array for it, if so...then eliminate it...but I'm not sure if that's the best/easiest way to go about it.

A_T