//Here is a simple code to simulate the rolling of one die.. //We will try to adapt it to the rolling of 2 die. public class Dice { private static void doRawRandomNumber() { double rawRandomNumber; rawRandomNumber = Math.random(); double dice1 = Math.floor(rawRandomNumber*6)+1; System.out.println("-------------------------------------------------"); System.out.println("Die #1 : " + dice1); System.out.println("-------------------------------------------------"); System.out.println("\n"); } /** * Sole entry point to the class and application. * @param args Array of String arguments. */ public static void main(String[] args) { doRawRandomNumber(); } }