main.java
/*******************************************************************************************
     * RollMultiDie
     * This function takes in any number of die, and it can have as many sides as desired.
     * (Could come in handy for role-playing game implementations.)
     *******************************************************************************************/
RollMultiDie
This function takes in any number of die, and it can have as many sides as desired.
(Could come in handy for role-playing game implementations.)
RollMultiDie This function takes in any number of die and it can have as many sides as desired . ( Could come in handy for role - playing game implementations . )
public static int RollMultiDie(int n, int m) {
        int numberOf = n;
        int sides = m;
        int roll = 0;
        for (int i = 0; i <= numberOf; i++) {
            roll += (int) (Math.random() * sides) + 1;
        }
        return roll;
    }
public static int RollMultiDie ( int n , int m ) { int numberOf = n ; int sides = m ; int roll = 0 ; for ( int i = 0 ; i <= numberOf ; i ++ ) { roll += ( int ) ( Math . random ( ) * sides ) + 1 ; } return roll ; }
RollMultiDie
 This function takes in any number of die, and it can have as many sides as desired.
RollMultiDie This function takes in any number of die and it can have as many sides as desired .
// for each die, roll then add to the total