- @echo off&setlocal enabledelayedexpansion
- set char=QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm
- set "num_bit=7,11,12,14,15,29"
- for /l %%a in (1,1,34) do (
- set n=
- if %%a==1 ( set "str=!str!5" ) else if %%a==8 ( set "str=!str!-" ) else (
- for %%b in (%num_bit%) do if %%b==%%a set/a n=!random!%%10&&set "str=!str!!n!"
- if not defined n (
- set/a n=!random!%%52
- call;set "str=!str!%%char:~!n!,1%%"
- ))
- )
- echo;%str%>>out.txt
复制代码
|