Update index.md (#19461)

This commit is contained in:
Aditya
2018-10-16 18:45:55 +05:30
committed by Aditya
parent 47ee0fefa4
commit bd0acde5d1

View File

@ -36,9 +36,7 @@ Heres a full solution:
var randomNumberBetween0and19 = Math.floor(Math.random() * 20);
function randomWholeNum() {
// Only change code below this line.
Math.floor(Math.random() * 10);
return Math.floor(Math.random());
return Math.floor(Math.random()*10);
}
```