**Tell us what’s happening:**

Describe your issue in detail here.

Hi so I understand the logic behind the formula used in the challenge but I do not understand this part:

(max - min +1)

from what I’ve read on other posts its seems as if the min is being subtracted from the max before 1 is added to the min. Does BODMAS not apply in Javascript or am I confused by something

Please help .

Thanks.

```
**Your code so far**
```

```
function randomRange(myMin, myMax) {
// Only change code below this line
return Math.floor(Math.random()*(myMax - myMin + 1)) + myMin;
// Only change code above this line
}
```

```
**Your browser information:**
```

User Agent is: `Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36`

**Challenge:** Generate Random Whole Numbers within a Range

**Link to the challenge:**