JavaScript obtenga un número aleatorio con 6 dígitos

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