So I'm trying to find a way to basically generate 100 numbers from 0 to 99 in random order with no duplicates. This is my code, and as you can see it displays 100 numbers but....some are duplicates.
srand((unsigned)time(0));
for (int count = 0; count < 100; count++)
{
int y;
y = (rand()%100)+1;
cout<<y<<endl;
}