#include <cstdlib>
#include <ctime>
#include <iostream>

struct Dices
{
    int one; // Dice One
    int two; // Dice Two
};

Dices roll_dices()
{
    Dices d;

    d.one = std::rand() % 6 + 1;
    d.two = std::rand() % 6 + 1;
    return d;
}

bool check_double(Dices d)
{
    if (d.one == d.two)
        return true;

    return false;
}

int main()
{
    std::srand(std::time(NULL));

    Dices d = roll_dices();

    std::cout << "You rolled: " << d.one << " and " << d.two << "!\n";

    if (check_double(d))
        std::cout << "You rolled a double!\n";
}
