[ns] A question about random seed

Marcos "Locksmith" Portnoi mportnoi@ieee.org
Mon Apr 22 10:05:01 2002


That's because example1.tcl does not use any function that computes random
values.  It uses CBR as traffic generator, which is deterministic.  Indeed,
you will always get the same result. :)
Try a script with Exponential On/Off generator.

Portnoi

----- Original Message -----
From: "stan" <stanbilipala@yahoo.com>
To: "Marcos Locksmith Portnoi" <mportnoi@ieee.org>
Sent: Thursday, April 18, 2002 9:30 PM
Subject: Re: [ns] A question about random seed


> hi Marcos,
>    i had added the command in the simulation script
> but i still get the same result for each of my
> simulation. Could you explain why?
> I used example1.tcl in the ns tutorial as my example.
>
> Thanks and Regards,
>   Stanley.
>
> "   Line:3    Col:1--- "Marcos \"Locksmith\" Portnoi"
> <mportnoi@ieee.org> wrote:
> > The following command, put at the beginning of the
> > script, will seed the random number generator with
> > the system timer.  Hence, different random series
> > always.
> >
> > ns-random 0
> >
> > Portnoi
> >   ----- Original Message -----
> >   From: pangbo
> >   To: ns-users@ISI.EDU
> >   Sent: Tuesday, April 16, 2002 11:26 AM
> >   Subject: [ns] A question about random seed
> >
> >
> >   Hi,
> >
> >   I'd like to repeat one simulation several times.
> > But every time I got the same result. I guess if I
> > set a different random seed for ns, the result will
> > be different every time. So could somebody tell me
> > how can I set it.
> >
> >   Thanks!
> >
> >   Pang Bo
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Tax Center - online filing with TurboTax
> http://taxes.yahoo.com/
>