random letter generator no repeats in c++
string x = "abcdefghijklmnopqrstuvwxyz";
int inc = 26;
while (1){
if (inc < 1){
cout << "end of blah blah";
break;
}
int Number = rand() % inc + 0;
cout << x.at(Number) << endl;
string x2 = "";
for (const auto c : x){
if (c != x.at(Number)){
x2.push_back(c);
}
}
x = x2;
--inc;
}