c+= pick randomelemetn from vector code example
Example: how to get a random element from a vector c++ string
#include <iostream>
#include <vector>
using std::string;
int main()
{
std::vector <string> some_vector {"pizza", "burger", "fries", "chicken"};
string random = some_vector[rand() % some_vector.size()];
std::cout << random << "\n";
return 0;
}