Answers for "js random from x to y"

0

Generate random whole numbers javascript

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


function randomWholeNum() {

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

}

console.log(randomWholeNum());
Posted by: Guest on January-02-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language