Generate Random Whole Numbers within a Range - still not working

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:

Hello and welcome to the FCC community~!

You appear to declare the same function twice, which is causing errors. Correct that and you should pass :slight_smile:


Thank you! I also had a stray }

1 Like

That came from the extra function, I believe. :slight_smile:

1 Like