⌨️ap computer science principles review

RANDOM

Written by the Fiveable Content Team • Last updated September 2025
Verified for the 2026 exam
Verified for the 2026 examWritten by the Fiveable Content Team • Last updated September 2025

Definition

RANDOM is a function often used in College Board pseudocode that generates random numbers within specified ranges. It takes two arguments - the lower bound and upper bound of the range - and returns a randomly selected value within that range, inclusive.

"RANDOM" also found in: