#include <iostream>

using namespace std;

string giveName(unsigned int size = 7);

int main() {
    cout << "Minion's name generator!" << endl;
    cout << "provided by Jovian Hersemeule" << endl << endl;

    srand(time(0));

    for (int k(0); k < 5; k++) {
        cout << "Minion " << k + 1 << " : " << giveName() << endl;
    }

    return 0;
}

string giveName(unsigned int size) {
    string voyel("aeiou");
    string conson("bcdfghjklmnpqrstvwxyz");

    string newName;

    for (int k(0); k < size; k++) {
        if (k % 2) { // Voyelle
            newName.append(1, voyel[rand() % voyel.length()]);
        } else { // Consonne
            newName.append(1, conson[rand() % conson.length()]);
        }
    }

    newName[0] = toupper(newName[0]);

    return newName;
}