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

[ns] Random numbers



				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)