Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get random number with min and max

const randomNumber = getRandomNumberBetween(1,1000)
const getRandomNumberBetween = (min, max) => {
    return Math.floor(Math.random() * (max - min + 1) + min)
}
 
PREVIOUS NEXT
Tagged: #random #number #min #max
ADD COMMENT
Topic
Name
6+5 =