Which of the following expressions produces a random integer from 3 to 9, inclusive?
a. 1 + rand() % (9 − 3 + 1)
b. 3 + rand() % (9 − 3 + 1)
c. 3 + rand() % (9 + 3 − 1)
d. 9 + rand() % (9 + 1 − 3)
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.