fix(curriculum): corrected formula for generating a random number (#64231)

This commit is contained in:
Brian Tripp
2025-11-30 15:08:15 -08:00
committed by GitHub
parent dc13404330
commit 26e0752538
@@ -79,7 +79,7 @@ So, if the decimal point is less than `5`, the number is rounded down. And if th
```js
const max = 10;
const min = 5;
const randomNum = Math.floor(Math.random() * (max - min)) + min;
const randomNum = Math.floor(Math.random() * (max - min + 1)) + min;
console.log(randomNum);
```