Question: Please use a solution with the information given, I have tried to figure it out with other solutions and I have not been able to
Please use a solution with the information given, I have tried to figure it out with other solutions and I have not been able to Given a GVDie object and an integer that represents the total sum desired as parameters, complete function rolltotal number of rolls needed to achieve at least the total sum. Note: For testing purposes, the GVDie object is created in the main function using a pseudorandom number generator value. The program uses a seed value of during development, but when submitted, a different seed value will be used Ex: If the GVDie object is created with a seed value of and the input of the program is: LAB : LAB: How many dice rolls?
ACTIVITY main.py Load default template import random
class GvDie:
def initself:
random.selfself
self.myvalue random, randint
self.rand random. Random
def rollself:
self.myvalue self, rand, randint
# set the random number generator seed for testing
def setseedself seed:
self, rand, seedseed
When done developing your program, press the Submit for grading button below. This will submit your program for autograding. LAB : LAB: How many dice rolls?
ACTIVITY main.py Load default template.. FOR SOME REASON THE ANSWER WONT COMPILE....
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
