I\'m trying to generate a random number that must have a fixed length of exactly 6 digits.
I don\'t know if JavaScript has given below would ever create a number less th
generate a random number that must have a fixed length of exactly 6 digits:
("000000"+Math.floor((Math.random()*1000000)+1)).slice(-6)