I have a value I want to change with a random number and some if statements.
@echo off
set ethercost=275
:screen1
echo %ethercost%
set /p c=
if "%c%" == "1" goto timejump
:timejump
set /a num=%random% %% 6
if %num%==0 %ethercost%-=20
if %num%==1 %ethercost%-=10
if %num%==2 %ethercost%-=5
if %num%==4 %ethercost%+=5
if %num%==5 %ethercost%+=10
if %num%==6 %ethercost%+=20
goto screen1
I want to change ethercost based on the random number (if num=1, ethercost goes down by 10) Anyone know how I could do this?