文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>Control random number generator in NS2

Control random number generator in NS2

时间:2008-04-16  来源:zcwuwei

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就可以了。
相关阅读 更多 +
排行榜 更多 +
射击吧

射击吧

飞行射击 下载
爆射护卫队

爆射护卫队

飞行射击 下载
行尸出笼

行尸出笼

飞行射击 下载