Code: Select all
for /l %%U in (1,1,3) do (
set /a rand=!random!%%7+1
set "opt=tokens=!rand!"
for /f "!opt!" %%G in ("a b c d e f g") do (
set /a i+=1
set char[!i!]=%%G
)
)
echo %char[1]%-%char[2]%-%char[3]%
pause
I expect to get these results for example
Code: Select all
e-g-f
Any known issues with what I'm trying?