Implement and apply an algorithm.
Determine the result of code segments.
Learning Objective:
For generating random values:
a. Write expressions to generate possible values
b. Evaluate expressions to determine possible results
AAP-3.E.1
The exam reference sheet provides
Text:
RANDOM(a, b)
which generates and returns a random integer from a to b, inclusive. Each result is equally likely to occur. For example, RANDOM(1, 3)
could return 1, 2, or 3.
AAP-3.E.2
Using random number generation in a program means each execution may produce a different result