The questions is "Chevalier de Blasé, a notorious 17th century gambler, wanted to know whether he had higher odds of winning a dice game with four dice, where a win meant a pair of 5s and a pair of 6s, or a game with six dice, where a win meant four sixes (and two dice that are not a six).
Basically I need to find which of these two games have higher chance to win by "actually" throw the dice.
using namespace std;
return 1 + rand() % 6;
int game1_wins(int a, int b, int c, int d) //This is where I got stuck
I was thinking write it like this if(((a=5,b=5) && (c=6,d=6)) || ((a=5,c=5)..and so on, there's like 6 possibilities. But I feel like I am going to the wrong direction.