SOURCE

const letter = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l','m','n', 'o', 'p', 'q', 'r' , 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
const number = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
const _symbol = [',', '.', '?', '!', '@', '#', '$', '%']

const getName = () => {
    let name = "";
    for(i = 0;i < 7; i++){
        name += letter[Math.floor(Math.random() * 26)]
    }
    return name
}

const getPwd = () => {
    let pwd = "";
    for(i = 0;i < 4; i++){
        pwd += letter[Math.floor(Math.random() * 26)]
    }
    for(i = 0;i < 2; i++){
        pwd += _symbol[Math.floor(Math.random() * 8)]
    }
    for(i = 0;i < 4; i++){
        pwd += number[Math.floor(Math.random() * 10)]
    }
   return pwd
}

for (let i = 0; i< 50;i++) {
    let name = getName()
    let str = `${name}|${name}@qinayu.cn|Www123456|50|MB`
    console.log(str)
}
console 命令行工具 X clear

                    
>
console