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

Re: [ns] Random numbers



"ns-random 0" works for me...

>Date: Sat, 21 Oct 2000 23:17:44 -0400 (EDT)
>From: Agissilaos Ziotopoulos <[email protected]>
>To: [email protected]
>Subject: [ns] Random numbers
>MIME-Version: 1.0
>
>				Hi 
>I have problem generating independent simulations.I use the following
>snippet of code at the beginning :
>"set rng [new RNG]
>$rng seed 0 "
>Then I use it the following way:
>"set u($i) [new RandomVariable/Uniform]
>    $u($i) use-rng $rng
>    $loss_module($i) ranvar u($i)"
>but I get identical results each time I run my simulation.Do you have any
>idea how I can fix it?
>				Thanks
>				Ayis
>--
>"Provability is a weaker notion than truth, no matter what axiom system is
>involved ... "
>
>Kurt Godel (1906-1978)
>
> 

Tarik