- //&cls&cscript -nologo -e:jscript "%~f0"&pause&exit
-
- function r(str, n){
- var s='';
- if(n<=str.length){
- s=str.split('').sort(function(){return Math.random()-.5}).join('').substr(0,n);
- }else{
- for(var i=0;i<n;i++){
- s+=str.charAt(Math.floor(Math.random()*(str.length)));
- }
- }
- return s
- }
-
- var a='abcdefghijklmnopqrstuvwxyz';
- var b='0123456789';
- var c='!@#$%^&*()';
- for(var i=0;i<100;i++){
- WSH.Echo(r(a, 3)+r(a, 3).toUpperCase()+r(b, 3)+r(c, 3));
- }
复制代码
|