开发者

Why can't I assign random values in a loop?

I want to implement the following:

for (( i=1; i<=sim_users; i++))
do
   value[$i] = $RANDOM
done

why dosen开发者_如何学Python't this work?


You want

value[$i]=$RANDOM

You can't put a space before or after the equals sign.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜