import java.math.*; /** * Write a description of class Dice here. * * @author (your name) * @version (a version number or a date) */ public class Dice { public static int roll(int numDiceRolled){ int totalNumber = 0; for (int x = 1; x <= numDiceRolled; x++){ int Roll = (int)(6.0 * Math.random()) +1; totalNumber += Roll; } return totalNumber; } }