Adding %random% and

Microsoft Windows 7 home premium
November 24, 2010 at 09:15:11
Specs: Windows 7, AMD Athlon x2/4GB
my example:

set /a answr=%random%+%random%
echo %answr%

It seems that I cannot add two random global variables this way. I also tried these to failure:

%random% + %random%
(%random% + %random%)


See More: Adding %random% and

Report •

November 24, 2010 at 10:13:52

Turns out I had an err in another line of code...this works:

set /a answer=(%sum% + %sum1%) or
set /a var=(%random% + %random%)

Report •
Related Solutions

Ask Question