#include #include #include #include using namespace std; int main() { const string n[][9] { {"CVN", "LHD", "LPD", "LSD", "DDG", "CG", "SSN", "SSBN", "SSGN"}, // Platform {"Virginia", "California", "Japan", "Florida", "Italy", "Spain", "Bahrain", "Greece", "Hawaii"} // Duty Station }; const size_t fleet {size(n[0])}; srand(static_cast(time(nullptr))); //Seed the random generator const int orders {rand() % 9}; //Random orders from 0 to 8 cout << "I was stationed on a " << n[0][orders] << " in " << n[1][orders] << ".\n"; return EXIT_SUCCESS; }