Please enable JavaScript to use CodeHS

Chapter 2

JavaScript Control Structures

2.6 Random Numbers


Rolling a Die

More Things To Do With The Randomizer

Flipping a Coin

Check Your Understanding

  1. Invalid Answer

Exercise: Lots of Rolls


Term Definition
JavaScript Documentation Documentation for the syntax and objects in Javascript that we use on CodeHS.
Randomize To generate or select a random object
Pseudorandom Not actually random, but appears to be random

Do you have feedback on this lesson? Let us know here
Rate this lesson:

Feedback on this lesson:

Issue found (optional):