Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Code is in python lang 1. Create a dice roller program that will allow a user to roll a 6 sided die, a die with
Code is in python lang
1. Create a dice roller program that will allow a user to roll a 6 sided die, a die with a user-defined amount of sides (ex: a 10- sided die), and a user-defined amount of dice each of a user-defined amount of sides (ex: 4 dice, each with 20 sides). 2. Define a new function called standard_dice(). When the function is called, it will return a random number from 1-6. You've already learned how to generate a random number, so feel free to refer back to your earlier work! o At the start of your program, make sure to write: import random o Use: random.randint(a,b) -- this function returns a random integer x, such that aStep 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