Write a complete Java program that simulates the rolling of a pair of dice. For each die in the pair,…