#include <iostream>
#include <ctime>
std::string generatePassword(int password_length) {
std::srand(std::time(nullptr));
std::string password(password_length, '*');
for (int i = 0; i < password_length; i++) {
password[i] = std::rand() % (126 - 33 + 1) + 33;
}
return password;
}
int main() {
std::string password = generatePassword(10);
std::cout << password << std::endl;
}
/*
run:
X6GM;s7kAu
*/