Tell us what’s happening:
I passed the challenge but I don’t understand the maths behind the exercise - especially regarding taking the randomly generated decimals and then multiplying them 10 in this case.
Your code so far
var randomNumberBetween0and19 = Math.floor(Math.random() * 20);
function randomWholeNum() {
// Only change code below this line.
return Math.floor(Math.random() * 10);
}
Link to the challenge: