(function () { let prefix = 'PassWord@!.' let max = 9999 let printTimes = 30 for (let i = 0; i < printTimes; i++) { let index = i + 1 < 10 ? `0${i + 1}` : `${i + 1}` let random = Math.round(Math.random() * max + 999) if (random > max) { // console.log("leaked random", random) random -= Math.round(random - max + Math.random() * 999) // console.log("fixed random", random) } console.log(index, prefix + random) } })();