Package Files
Class Dice
java.lang.Object
Files.Dice
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Constructor Details- 
Dicepublic Dice()
 
- 
- 
Method Details- 
setSidesConstructs dice object with specific number of sides- Parameters:
- sides- number of sides for the dice object
 
- 
rollDiceMethod to roll the dice with the specific number of sides- Returns:
- Integer result of the dice roll
 
 
-