- @echo off & setlocal enabledelayedexpansion
- set /aa=99,b=33,c=59,d=87,e=28,len=1000,_a=10003,_e=19999
- for /l %%i in (!_a!,1,!_e!) do (
- set "s=%%i.txt"
- (for /l %%i in (1,1,!len!) do (
- set /a "ar=!random!%%%a%+1,br=!random!%%%b%+1,cr=!random!%%%c%+1,dr=!random!%%%d%+1,er=!random!%%%e%+1"
- echo !ar!##!br!##!cr!##!dr!##!er!
- ))>"!s:~1!"
- )
- pause
复制代码
|