Question: First function as roll _ dice that will generate random numbers from 1 to 6 Second function as play _ dice _ game: it will
First function as rolldice that will generate random numbers from to
Second function as playdicegame: it will initially call the first function rolldice, then user will input an integer from to If user guess is equal to rolldice you won else try again.
So when you call second function the game will start and output the outcome!
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
