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

RE: About the random number generated.



You can use $ns random <random_seed> to set different seed for different
simulations. Set seed '0' means choosing a random predefined "good" seed
for every run.

- Haobo

> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]]On Behalf Of Cheng Liang
> Sent: Sunday, August 30, 1998 1:09 AM
> To: NS
> Subject: About the random number generated.
>
>
> Hi, all,
>      When I ran my scripts related to SRM using NS, I found each time
> in simulation the reqest delay and some other delays are the same, which
> are created by ( $C1 + $C2 * [uniform 0 1]* distance ).
> How could I  make changes in my own scripts in order to get RANDOM results
> rather than adding in NS? Thank you very much in advance.
>
> Cheer
> Cheng Liang
>
>
>