C coding assignment

profilelahana1

 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. 

 An int variable named numberOfReRolls must exist and be used to determine how many times the user is allowed to reroll. 

  • 7 years ago
  • 15
Answer(0)