Generate Random Whole Numbers within a Range not meeting one requirement, potentially broken

// Only change code below this line.
var min = 5;
var max = 15;

function randomRange(myMin, myMax) {

  return  Math.floor(Math.random() * ((max + 1) - min)) + min; // Change this line


// Change these values to test your function
var myRandom = randomRange(5, 15);

This still does not meet the “randomRange should use both myMax and myMin, and return a random number in your range.
” requirement, What am I doing wrong?

Your function already have myMin & myMax as input, you don’t need min or max variable anymore.

Use myMin & myMax in your function, not min & max