Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js draw number in range

function randomRange(myMin, myMax) {
  return Math.floor(Math.random() * (myMax - myMin + 1) + myMin);
}
console.log(randomRange(10, 20))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #draw #number #range
ADD COMMENT
Topic
Name
1+8 =