Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js random number between 1 and 5

const rndInt = Math.floor(Math.random() * 6) + 1
    console.log(rndInt)
 Run code snippet
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #random #number
ADD COMMENT
Topic
Name
5+2 =