#include #include #include #include #include #include #include #include #include #ifdef __cplusplus #include #include #include #include #include #include #include #endif #define COINFLIP() (rand() % 2) using point = std::tuple; int main(int argc, char const *argv[]) { std::vector foo = {1, 2, 3, 4, 5}; std::vector bar = {'a', 'b', 'c', 'd', 'e'}; point a = std::make_tuple(rand() % foo.size(), rand() % bar.size()); point b = std::make_tuple(rand() % foo.size(), rand() % bar.size()); point c = std::make_tuple(rand() % foo.size(), rand() % bar.size()); std::vector pts = {a, b, c}; for (const auto &p : pts) { std::cout << foo[std::get<0>(p)] << " " << bar[std::get<1>(p)] << std::endl; } return 0; }