generate random string with capital and small alphabets c++ code example
Example: C++ fill string with random uppercase letters
#include <string>
using namespace std;
string CreateRandomChars(std::size_t ItemCount) {
string str;
for(unsigned i=0;i<ItemCount;++i)
str.push_back((rand() % 26) + 'A');
return str;
}