[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] How to set random seed in tcl program
Hope this helps
set random_generator1 [ new RNG ]
$random_generator1 seed $seed
set rv [ new RandomVariable/Exponential ]
$rv use-rng $random_generator1
"Ama et face quod vis."
On Mon, 27 Nov 2000, [iso-8859-1] ddd wwqq wrote:
> Hi
> I am running TCP simulation in wireless, I want to
> simulate the error in wireless link, but I don't know
> how to set seed to get random number, can any one tell
>
> me how to implement this?
>
> Thanks a lot!
> Wenqing
>
> _____________________________________________________________________________
> http://clubs.yahoo.com.au - Yahoo! Clubs
> - Join a club or build your own!
>