Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript random number between

//returns a random number between min and max

const randomNumbers = (min, max) => {
	return Math.round(Math.random() * (max - min)) + min;
}
 
PREVIOUS NEXT
Tagged: #javascript #random #number
ADD COMMENT
Topic
Name
5+4 =