#include <string> #include <vector> #include <algorithm> #include <iostream> using namespace std; int main() { vector<string> vs; cout << "Random shuffle of days of the week" << endl; vs.push_back(string("Sunday")); vs.push_back(string("Monday")); vs.push_back(string("Tuesday")); vs.push_back(string("Wednesday")); vs.push_back(string("Thursday")); vs.push_back(string("Friday")); vs.push_back(string("Saturday")); cout << "normal order" << endl; for (int i = 0; i < 7; i++) cout << vs[i] << " "; cout << endl; // shuffle days random_shuffle(vs.begin(), vs.end()); //display shuffled elements cout << "shuffled order" << endl; for (int i = 0; i < 7; i++) cout << vs[i] << " "; cout << endl; }