Basic JavaScript - Generate Random Whole Numbers within a Range

Tell us what’s happening:
Describe your issue in detail here.
Hi Guys, Please I need help here. I’ve been stuck here for a while now and I honestly don’t know what I’m not getting right.
Your code so far

function randomRange(myMin, myMax) {
  // Only change code below this line
  Math.floor(Math.random() * (myMax - myMin + 1)) + myMin;
  Math.floor(Math.random() * (30 - 5 + 1)) + 5;
  return 5;
  // Only change code above this line
}

Your browser information:

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

Challenge: Basic JavaScript - Generate Random Whole Numbers within a Range

Link to the challenge:

How do I make it return a random number between myMin and myMax please?

Cus I’m totally confused right now :smiling_face_with_tear: :man_facepalming:t5:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.