[ns] tcl: random operator

Siraj Shaikh siraj.shaikh at gmail.com
Wed Aug 6 07:53:37 PDT 2008


Hi

I am wondering if there is anyway to introduce a random assignment of
nodes in the tcl?

I am trying to schedule a simulation where I have a list of nodes,
only one or a few of them would be scheduled to initiate some traffic.
Now is it possible to choose this single (or a few) node(s) from the
list randomly? So, everytime I run the simulation, a random node is
selected automatically by the tcl script?

Any comments on this issue are much appreciated.

Thanks

Siraj



More information about the Ns-users mailing list