you already have the formula explained and you are asked to use it directly to return a random whole number within a
given range, return it …
The Math.random() function generates a random decimal number between 0 (inclusive) and 1 (exclusive). By multiplying it with (myMax - myMin + 1), we obtain a random decimal number between 0 (inclusive) and myMax - myMin + 1 (exclusive). Adding myMin to it shifts the range to be between myMin (inclusive) and myMax (inclusive). Finally, Math.floor() rounds down the decimal value to the nearest whole number.Return the formula that was given in the lesson

There is no logic involved here. You can literally copy and paste the example code, change the variable names so they match the parameters, and return the result.