Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript 5 digit random number

var min = 10000;
var max = 90000;
var num = Math.floor(Math.random() * min)) + max;

here you can increse the min and max value this is for 5 digits 


or this
Math.floor(Math.random()*90000) + 10000;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #digit #random #number
ADD COMMENT
Topic
Name
9+8 =