Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Setting the random seed to a fixed value allows you to get predictable results every time, but it does not allow for a very interesting

Setting the random seed to a fixed value allows you to get predictable results every time, but it does not allow for a very interesting dice game. Comment the line back out so you have a random roll of the dice again.
Try modifying your code to use 4,8,12, or 20 sided dice.
Then, modify your code to ask the user how many sides their two dice have. Even though you couldnt build fair 7 or 13 sided dice physically, with digital dice you could use them.
You need to ask for how many sides each dice has. This means two inputs for two dice!

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

What is human nature?

Answered: 1 week ago