- @echo off
- setlocal enabledelayedexpansion
- set/p i=<a.txt
- for /l %%a in (1,1,500) do set "_!random!_%%a=!i:~,1!"&set "i=!i:~1!"
- for /f "skip=490 tokens=2 delims==" %%a in ('set _') do set "j=!j!%%a"
- (for /l %%a in (1,1,500) do (
- set/a mod=!random!%%10
- for %%b in (!mod!) do <nul set/p=!j:~%%b,1!
- ))>b.txt
- pause
复制代码
|