**Tell us what’s happening:**

I fail at math so this stupid thing makes no sense to me, i am pretty sure my difficulty lies in my mathematical ineptitude.

where the instructions tell you to work out what the formula does i see :

the number will be rounded down, random and multiplied by a min subtract a max and add 1. then it is added to the min for some reason.

am i missing something in my analysis?

**Your code so far**

```
// Example
function ourRandomRange(ourMin, ourMax) {
return Math.floor(Math.random() * (ourMax - ourMin + 1)) + ourMin;
}
ourRandomRange(1, 9);
// Only change code below this line.
function randomRange(myMin, myMax) {
return
nothing is ever good enough for you, you stupid program!!!!!!!!; // Change this line
}
// Change these values to test your function
var myRandom = randomRange(5, 15);
```

**Your browser information:**

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

.

**Link to the challenge:**

https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/generate-random-whole-numbers-within-a-range