Search found 1 match

by Dankbatcher
10 Feb 2016 09:11
Forum: DOS Batch Forum
Topic: Setting numerically labeled vars to strings
Replies: 3
Views: 3775

Setting numerically labeled vars to strings

So basically what I have is a random number generator. set /a rngn=%random% %% 25 Then a big loop that will set a variable depending on how many times it has cycled through the loop. The slot variable has already been declared, and equals 1. :setvars set /a rngn=%random% %% 25 echo %rngn% IF /i %rng...