js实现任意长度的伪随机字符串
funtion fn(len){
let stringA = ‘abcd.....890‘;
let length = stringA.length;
let temp = ‘‘;
for(let i=0;i<len;i++){
temp += stringA.CharAt(Math.floor(Math.random( )*length));
}
return temp;
}
js实现任意长度的伪随机字符串
原文:https://www.cnblogs.com/sonsmart/p/15265665.html