๐Ÿ’ปap computer science a review

Random()

Written by the Fiveable Content Team โ€ข Last updated September 2025
Verified for the 2026 exam
Verified for the 2026 examโ€ขWritten by the Fiveable Content Team โ€ข Last updated September 2025

Definition

The random() function generates and returns a pseudo-random decimal value between 0.0 (inclusive) and 1.0 (exclusive).

"Random()" also found in: