I\'d like to make a number generator that does not repeat the number it has given out already (C++).
All I know is:
int randomgenerator(){ int ran
Create a vector of 10 elements (numbers 1-10), then shuffle it, with std::random_shuffle. Then just iterate through it.