Number of dice and number of faces per die are defined once (not hardcoded throughout the program). A function named RollDice takes a parameter that is the dice array and randomly fills the array with numbers between 1 and 6. No global variables – dice array must be passed.