Question 1 of 10
How many distinct integers can RANDOM(1, 5) produce?
- A. 5
- B. 6
- C. 1
- D. 4
How many distinct integers can RANDOM(1, 5) produce?
Which outcome is impossible for RANDOM(2, 4)?
A simulation runs die ← RANDOM(1, 6) on every trial. Why might two runs print different sequences of die values?
Consider:
x ← RANDOM(0, 2)
y ← RANDOM(0, 2)
sum ← x + y
Which value of sum is impossible?
RANDOM(a, b) includes both endpoints. What are the possible values of RANDOM(7, 7)?
The table lists inclusive ranges and asks for the count of distinct outcomes.
| Expression | Distinct integers |
|---|---|
| RANDOM(1, 3) | 3 |
| RANDOM(5, 8) | 4 |
| RANDOM(10, 15) | ? |
What replaces the question mark?
Code: coin ← RANDOM(0, 1). Which statement is true?
A spinner simulation uses spin ← RANDOM(1, 4). A student claims the only possible display is 4 because the maximum was requested. What is wrong with that claim?
Which expression can produce the integer 0?
How many distinct integers can RANDOM(3, 10) produce?