function randomNum(minNum,maxNum){ switch(arguments.length){ case 1: return parseInt(Math.random()*minNum+1,10); break; case 2: return parseInt(Math.random()*(maxNum-minNum+1)+minNum,10); break; default: return 0; break; } } let prinStr = "ywgzs" + randomNum(300000,999999) +"@outlook.com"; console.info(prinStr);