Basic JavaScript - Testing Objects for Properties

Hello, everyone

Math.floor(Math.random() * (max - min + 1)) + min

Can someone help me to know the meaning of (max - min +1)) + 1, like what does it mean to the formula?

You title seems unrelated to the post? Can you provide a link to the Challenge you are working on and update your post title please?

I think it’s this one?

https://forum.freecodecamp.org/t/freecodecamp-challenge-guide-generate-random-whole-numbers-within-a-range

Did you read this page?

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.