Tell us what’s happening:
Your code so far
function randomRange(myMin, myMax) {
// Only change code below this line
function randomRange(myMin, myMax) {
return (Math.floor(Math.random() * (myMax - myMin + 1) + myMin)); // Change this line
}
// Only change code above this line
}
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1.2 Safari/605.1.15
.
Challenge: Generate Random Whole Numbers within a Range
Link to the challenge: