Random number within a range

The model solution does not set up variables for myMin and myMax. How does the program know what they are.
If I do set them up, I can console.log the random numbers generated, but if I don’t it return NaN, not a legal number.

Also, if I submit with the variables specified, the code is not accepted with the message :
// running tests The lowest random number that can be generated by `
randomRange should be equal to your minimum number,. The highest random number that can be generated by randomRange should be equal to your maximum number, myMax.
This seems illogical to me. Could someone explain, please.
slight_smile:

What is this in reference to? What is your code?

OK I think I have solved it. I needed to specify the myMin and myMax numbers in the console.log line. Basic mistake. My solution is now accepted. Thanks for the reply Kevin.

I’m still not sure what is happening, but I’m glad I could help. :wink: