⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rng-test2.tcl

📁 跑leach需要的
💻 TCL
字号:
## Usage: ns rng-test2.tcl [replication number]#if {$argc > 1} {    puts "Usage: ns rng-test2.tcl \[replication number\]"    exit}set run 1if {$argc == 1} {    set run [lindex $argv 0]}if {$run < 1} {    set run 1}# the default RNG is seeded with 12345# create the RNGs and set them to the correct substreamset arrivalRNG [new RNG]set sizeRNG [new RNG]for {set j 1} {$j < $run} {incr j} {    $arrivalRNG next-substream    $sizeRNG next-substream} # print the first 5 arrival times and sizesfor {set j 0} {$j < 5} {incr j} {    puts [format "%-8.3f  %-4d" [$arrivalRNG lognormal 5 0.1] \            [expr round([$sizeRNG normal 5000 100])]]}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -