China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-07-15 00:25
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » If I need to generate a random number between 1 and 100, how should I write it (completed) View 3,846 Replies 16
Floor 16 Posted 2006-12-01 06:58 ·  中国 上海 徐汇区 电信
初级用户
Credits 86
Posts 27
Joined 2005-09-25 13:58
20-year member
UID 42814
Status Offline
Excuse me, how should I write to subtract two variables in BAT and assign the result to the third parameter!
Floor 17 Posted 2006-12-01 09:03 ·  中国 广西 玉林 博白县 电信
金牌会员
★★★★
Credits 3,687
Posts 1,467
Joined 2005-08-08 12:00
20-year member
UID 44210
Status Offline
Originally posted by mwh79 at 2006-11-30 18:31:
I tested, it's the same,,,,What I actually want to achieve is, not to display, but to only read numbers from 35 to 100,,,,,not reading 1-34, so that I can get the data immediately without judgment!

for /l %%i in (35,1,100) do echo %%i
Forum Jump: