1.

Solve : need random value in a batch file?

Answer»

ok what I need is a random VALUE in the range of 0-255 I know about the %random% command but the value is in the range of 0-65535 so can some ONE please help? Welcome to CH, BlazingClaymore.

Try this:
Code: [Select]@echo off
set /a NUM="%random%" %%36 + 1 >nul
echo %num%
pause



Discussion

No Comment Found