Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

node js random number generator

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