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
100000 + Math.floor(Math.random() * 900000);
will give a number from 100000 to 999999 (inclusive).