Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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...
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started