#include #include #include int main() { int d1,d2,total; srand((unsigned)time(NULL)); d1 = rand() % 6 + 1; d2 = rand() % 6 + 1; total=d1+d2; printf("You rolled %d and %d: Total %d\n",d1,d2,total); return(0); }