本帖最后由 keshun 于 2013-5-10 03:01 编辑
借用3楼代码修改成,每次生成20组,生成次数可修改,把21换成你想要的数- @echo off
- setlocal enabledelayedexpansion
- :1
- set $=
- set #=abcdefghijklmnopqrstuvwxyz
- for /l %%i in (1 1 8) do (
- set /a _ = !random! %% 26
- for %%_ in (!_!) do set $=!$!!#:~%%_,1!
- )
- echo %$%>>1.txt
- set/a a+=1
- if %a% lss 21 goto 1
复制代码
|