jains521 当前离线
一级士官
@echo off &setlocal enabledelayedexpansion for /f "delims=" %%i in (111.txt) do ( call :rd set f_!rd!=%%i ) ) set n=5 for /f "delims==" %%i in ('set f_') do ( set /a "x+=1, 1/( x%%(n+1) )" 2>nul &&echo !%%i! || goto end ) :end pause goto :eof :rd set /a rd=%random% if defined f_%rd% goto rd goto :eof复制代码
TOP