Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Generate random whole numbers javascript

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


function randomWholeNum() {

	return Math.floor(Math.random() * 10);

}

console.log(randomWholeNum());
 
PREVIOUS NEXT
Tagged: #Generate #random #numbers #javascript
ADD COMMENT
Topic
Name
1+6 =