| @echo off | | set ci=4 | | :start | | set /a w=%random%%%9+1,y=9 | | set "var=0 1 2 3 4 5 6 7 8 9" | | call set "var=%%var:%w%=%%" | | for /l %%a in (1 1 3) do call :loop | | if not defined _%w% ( | | set _%w%=a | | echo %w% | | set /a ci-=1 | | ) | | if %ci% neq 0 goto start | | echo\&pause&exit | | :loop | | set /a n=%random%%%%y%+1 | | for /f "tokens=%n%" %%a in ("%var%") do set "m=%%a" | | set /a "y-=1" | | set "w=%w%%m%" | | call set "var=%%var:%m%=%%" | | goto :eofCOPY |
|