Random Values FRQ Practice

Responses receive AI feedback against a rubric after submission. Scores are practice estimates.

Question 1 of 5

(a) How many distinct integers can RANDOM(20, 25) produce? (b) List them. (c) Explain inclusive endpoints with one sentence.

Question 2 of 5

Code:

r ← RANDOM(1, 4)
IF (r = 4)
{
    DISPLAY("jackpot")
}

(a) List all possible values of r. (b) On a single run, explain whether "jackpot" must appear. (c) Why might one run display jackpot and another run display nothing?

Question 3 of 5

Two calls: x ← RANDOM(1, 3) and y ← RANDOM(2, 4). (a) Give one possible ordered pair (x, y). (b) Give one impossible ordered pair with a counting/range reason. (c) How many distinct values can x take, and how many can y take?

Question 4 of 5

A dice app displays RANDOM(1, 6) once per button press. (a) Why can pressing the button five times show five different numbers? (b) Why can it also show the same number twice in a row? (c) State how many distinct integers are possible on one press.

Question 5 of 5

(a) Write RANDOM(a, b) that can produce exactly the set {9, 10, 11}. (b) Show the count as b - a + 1. (c) Name one integer that cannot appear.