I have the random number generator that works but the some numbers repeat. I want to create 26 numbers between 1 and 26 and each number can only be used once.
Code:
srand((unsigned)time(0));
int randNum=1;
for(int amtNum=0; amtNum<26; amtNum++)
{
randNum = (rand()%26)+1; // makes random number from 1 to 26
cout << randNum << endl;
Comment