Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

random between min and max

function getRandomInt (min, max) {
    return Math.floor(Math.random() * (max - min + 1)) + min;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #random #min #max
ADD COMMENT
Topic
Name
8+6 =