Answers for "rget random number javasscript"

5

get random numbers javascript

//Write the following code to get a random number between 0 and n
Math.floor(Math.random() * n);
Posted by: Guest on June-20-2020
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