⌨️ap computer science principles review

Random.randint(a,b)

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.randint(a,b)" refers to a Python function that generates a random integer between the values of 'a' and 'b', inclusive.

"Random.randint(a,b)" also found in:

2,589 studying →