#include <string> #include <iostream> #include <ctime> int main() { srand( time(0) ); std::string str[4] = {"First", "Second", "Third", "Another" }; std::cout<< str[rand() % 5]; return 0; } C #include <string> #include <iostream> #include <ctime> int main() { srand( time(0) ); std::string str[4] = {"First", "Second", "Third", "Another" }; std::cout<< str[rand() % 5]; return 0; }