Math.ceil(6 * Math.random());

This does not generate an random number between 1 and 6 as the text says.

It generates a number between 0 and 6 since Math.random() in rare cases returns 0 and 0 * 6 is 0 and Math.ceil(0) is 0.

**Link to content:** Learn to Code with JavaScript - Section 4