JavaScript obtient un nombre aléatoire avec 6 chiffres

Math.floor(100000 + Math.random() * 900000);
Dangerous Dog