分类: 系统运维
2008-04-16 10:54:42
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就可以了。 |