// let chars = '123456789'; let code = ''; // for (let i = 0; i < 6; i++) { // code += chars.charAt(Math.floor(Math.random() * 10)); // } const min = 10000 const max = 99999 code = Math.round(Math.random() * (max-min)) + min; // code = Math.random() // stmp = String(code) // console.log(stmp.slice(2,8)) console.log(code)