ok i change it so there isnt the if statement inside the other if. and also i changed the null because this ">null" makes a file, this doesnt ">nul".
@echo off
set DC1=10
if '%DC1%'=='10' (
set /a ST=%random% %%3 + 1 >nul
pause
)
if '%ST%'=='3' (
pause
set DC1=King
goto :Done
)
if '%ST%'=='2' (
pause
set DC1=Queen
goto :Done
)
if '%ST%'=='1' (
pause
set DC1=Jack
goto :Done
)
goto :DC2
:DC2
echo %DC1%, this is DC2.
pause
:Done
echo %DC1%, this is DONE.
pause
does this work?