math random javascript whole numbers code example
Example: Generate random whole numbers javascript
var randomWholeNumber = Math.floor(Math.random() * 20);
function randomWholeNum() {
return Math.floor(Math.random() * 10);
}
console.log(randomWholeNum());