Chinaunix首页 | 论坛 | 博客
  • 博客访问: 701307
  • 博文数量: 112
  • 博客积分: 10010
  • 博客等级: 上将
  • 技术积分: 1192
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-12 16:46
文章分类

全部博文(112)

文章存档

2009年(4)

2008年(108)

我的朋友

分类: 系统运维

2008-04-16 10:54:42

2007-10-10 19:22
Control the random number generation with ns-random command in your tcl script:

ns-random [integer]

if integer = 0 then everytime you run the script, it seeds the generator use current time. otherwise, it will produce deterministic results.

这个命令用来控制NS2产生随机数序列的方法,有些人做实验喜欢跑个百/千/万遍的,就用这个命令吧。shell脚本里来个while循环./ns xxx.tcl就可以了。
阅读(1007) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~