generate random whole numbers in js 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());