⌨️ap computer science principles review

RANDOM(a)

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

Definition

The term "RANDOM(a)" in College Board pseudocode refers to a function that generates a random number between 0 and (a-1), where 'a' is the input parameter.

"RANDOM(a)" also found in:

2,589 studying →