Answers for "random letter generator no repeats in c++"

0

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;
	}
Posted by: Guest on December-09-2020

Code answers related to "random letter generator no repeats in c++"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language