Please enable JavaScript to use CodeHS

AP Computer Science Principles in JavaScript

Lesson 4.9 Random Numbers

Description

In this lesson, students will learn how randomization can enhance a program and be used in combination with various control structures.


Objective

Students will be able to:

  • Explain why random numbers are a useful part of computer programs
  • Create random values in a program
  • Utilize the DOCS for the Randomizer class in order to learn how to generate random values