Question: Design and create a Dice class, which has below methods. A constructor that receives dice's minimum value and maximum value as the parameters. A static

Design and create a Dice class, which has below methods. A constructor that receives dice's minimum value and maximum value as the parameters. A static method displayCount that displays the total number of dices that have been created A roll method that roll the dice, generate and store a number that is between the dice's minimum and maximum value (inclusive). Below codes can be used to generate an integer number between minval and maxVal (inclusive). import random i = random.randint (minval, maxval)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
