Total possible outcomes when rolling four dice:
Each die has 6 faces, so there are:
6^4=1296, possible outcomes when rolling four dice.
Calculate the number of outcomes where all dice show different faces:
The first die can show any of the 6 faces.
The second die can show any of the remaining 5 faces (different from the first die).
The third die can show any of the remaining 4 faces (different from the first two dice).
The fourth die can show any of the remaining 3 faces (different from the first three dice).
Therefore, the number of ways in which all four dice show different faces is:
6×5×4×3=360
Calculate the probability that all dice show different faces:The probability 𝑃(all different) divided by the total number of outcomes:
𝑃(all different)=360/ 1296=5/18
Calculate the probability that at least two dice show the same face:
𝑃(at least two the same)=1−𝑃(all different)=1−5/18=13/18