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-08-09 08:31
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Question about getting a random assigned value View 750 Replies 2
Original Poster Posted 2008-07-30 12:54 ·  中国 广东 茂名 化州市 电信
中级用户
★★
Credits 396
Posts 183
Joined 2007-12-23 06:24
18-year member
UID 106531
Gender Male
Status Offline
(123 546 231321 8798 32132 abc sdfa retr lkjlk) ;the contents inside the parentheses are entered manually, and more may need to be added as needed

Now I need to get a random value from inside the parentheses. If I use the echo %random% command, what I get has nothing to do with the contents in the parentheses at all.

Experts, show up quick.
Floor 2 Posted 2008-07-30 18:12 ·  中国 广东 深圳 电信
初级用户
Credits 32
Posts 14
Joined 2007-08-28 16:42
18-year member
UID 96038
Gender Male
Status Offline
Floor 3 Posted 2008-07-30 21:39 ·  中国 广东 江门 电信
初级用户
Credits 32
Posts 13
Joined 2008-07-27 00:40
18-year member
UID 122178
Gender Male
From 广东省揭东县
Status Offline
Can the one in post #2 explain it a bit? I'm a newbie and can't understand it.
Forum Jump: