you could append a character to a Math.floor((Math.random() * [any number]) + [10000]);

explanation:
the 10000 will make sure that the number is always 5 digits.

ex:
Math.floor((Math.random()...