hey guys,
I'm writing a game and I'd like to have a few random things happen.
I've used %random% to generate a number but the number is allways very simlier to tha last one.
I had intended to get a ramdom number, divided by 2 and then do a if gtr then do.... if lss than do.... but beacuse the number is allways around the 170** range.
example
test.bat
@echo off
set num=%random%
echo %num%
set /a num=%num% / 2
echo %num%
if /i "%num%" GTR "16384" (echo number low) else echo number low
set num=
pause
any ideas??