Since you are talking about seeds, I suppose you are referring to the bult-in random generator of NS.
You could use the built-in commands for the random generator concerning the change of seed. Say that your random generator variable is set randGen [new RNG] then to change the seed for the randomGen object you can use $randGen seed <n>, where <n> is the new seed. Or you can also use the next-substream command that changes the substream from where random numbers are returned: $randGen next-substream Many more commands concerning the behavior of the random generator can be found in the NS Manual, in the chapter 23: "Mathematical Support". Hope that helped. Regards, -Fk On 4/26/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > ---------- Forwarded message ---------- > From: malin nadine <[EMAIL PROTECTED]> > To: [email protected] > Date: Wed, 26 Apr 2006 13:09:19 +0200 (CEST) > Subject: [ns] How to change seed in NS2 > Hello every one > > I have used these commands to change the seed in > ns-2: > > set val(seed) 0.0 > > > but when I run the same simulation many times, I got > the same > sesults. > > > is there any help > > Thanks in advence > > Nadine > > > > > -- Filippos N Kolovos Software Systems Analyst & Engineer M.Sc. (Eng.) in Data Communications Automation & Networking Department University of Macedonia Library Egnatia 156, P.O.Box 1591 540 06 Thessaloniki, Greece E-Mail: [EMAIL PROTECTED], [EMAIL PROTECTED] ----------------------------------------------
