[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ns] Seeding the random number generator



On Thu, 12 Oct 2000, Sebastian Zimmermann wrote:

> Hi,
> 
> how can I seed the random number generator heuristically? Can I do this
> in the TCL script or do I have to modify the C code? (I don't want to
> use random numbers in the TCL script, I want the RED gateway to produce
> different results each time I run the simulator)
> 
> 
> TIA
> Sebastian
> 

You can do it in Tcl script by using
 
$rng_ seed heuristic 0

or

$rng_ seed 0

You can look at the RNG::command() in rng.cc for details.

Wei Ye