Generate Random Whole Number

Hello please help me here something is wrong here

var randomNumberBetween0and19 = Math.floor(Math.random() * 20);

function randomWholeNum() {

  // Only change code below this line.
  Math.floor(Math.random() * 10(max-min)) + min;
  return Math.random();
}
here is the output:
The result of randomWholeNum should be a whole number.
  Math.floor(Math.random() * 10(max-min)) + min;

This line doesn’t actually do anything. You only return Math.random().

Also, where are max and min defined?

okay I see let me try again

I used this and works fine

var randomNumberBetween0and19 = Math.floor(Math.random() * 20);

function randomWholeNum() {

  // Only change code below this line.
  return Math.floor(Math.random() * 10);
}

Congratulations on figuring it out. Happy coding!