1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
expeople1 [14]
3 years ago
8

Write a function that simulates the roll of a six-sided dice. The name of the function is rollDice. The function accepts no para

meters and returns a pseudorandom int: 1, 2, 3, 4, 5, or 6. Write only the function, not the main program. You may assume that srand() was invoked in the main function. There should not be any cin or cout statements in the function.
Computers and Technology
1 answer:
Mumz [18]3 years ago
4 0

Answer:

int rollDice(){

  return 1 + rand() % 6;

}

Explanation:

You might be interested in
A vast global network that is made up of many smaller interconnected networks is known as:
Galina-37 [17]

The answer is The Internet.   It is a vast global network that is made up of many smaller interconnected networks. It connects to millions of computer units world wide, in which any computer can communicate with any other computer as long as they are both connected to the Internet. It also made access to information and communication easier.

6 0
4 years ago
Read 2 more answers
What is your robloz?​
ira [324]

Answer:

my Ro.b.l.o.x is cookiefunny232

Explanation:

5 0
3 years ago
True or false? A medical assistant can check for available exam rooms and providers using an electronic scheduling system.
lutik1710 [3]
This is true m8 hope this helps
4 0
3 years ago
One of the reasons that organized crime has been around so long is that it provides goods and services that society wants. A. Tr
Anna11 [10]

The answer would be:

<em><u>A) True</u></em>

8 0
3 years ago
Read 2 more answers
Dang was accepted to a biology program with a rigorous schedule and a high tuition, but good professors. What would be a benefit
Amiraneli [1.4K]
The benefit would be C. If you look at it and put yourself in their situation, it'd most likely be C that you think is most beneficial.
6 0
4 years ago
Read 2 more answers
Other questions:
  • What is the red wavy underline beneath the text
    7·1 answer
  • Which spreadsheet operation does a look function perform?
    5·1 answer
  • You would like the user of a program to enter a customer’s last name. Write a statement thaUse the variables k, d, and s so that
    5·1 answer
  • Life changing technology is easy to fall in love with. Describe a feature of a product that did it for you and highlight its ben
    13·1 answer
  • You open a link in a new tab by holding the _______ button while clicking the link
    8·1 answer
  • The term "blog" is short for ____.
    14·1 answer
  • Think back on the Font Tester App. Can you think of an example of another app or feature of an app which would use a loop to con
    14·1 answer
  • Hannah wanted to watch a movie. She typed the movie name on the search engine. In result she found the downloadable link of the
    10·1 answer
  • Which IDE component provides keyword highlighting and text auto-completion?
    8·2 answers
  • 1
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!