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. Incorrect Correct No Answer was selected 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