%random% seems to go in order.
@ECHO OFF
SET /A RAND=%RANDOM% %%100
ECHO %RAND%
ECHO.
If you keep running this it increments until it reaches 100 and then the number start over. If it were random it would jump around.
@ECHO OFF
SET /A RAND=%RANDOM%
ECHO %RAND%
ECHO.
If I understoof the question right, here's what you're looking for.
this may work.
hey if the problem still persists
use this code
this generates a number between a and b
tweak it to your needs