@echo off&setlocal enabledelayedexpansion
::批处理之家 bathome
set "code=ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
set /a w=%random%%%17+10
for /l %%a in (1 1 %w%) do (
set /a s=!random!%%36
for %%i in (!s!) do set "str=!str!!code:~%%i,1!"
)
echo !str!
pause