Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript get random number

// Returns a number between min and max
function getRandomArbitrary(min, max) {
  return Math.random() * (max - min) + min;
}
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #javascript #random #number
ADD COMMENT
Topic
Name
4+1 =