💻ap computer science a review

Random number generation

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

Definition

The process of generating a value unpredictably from a defined range; in this simulation, each integer from 10 to 50 grams has an equal probability of being chosen for food consumption per bird.

AP course connection

Topic 1.11: 1.11 Using the Math Class

Unit 1