Page 1 of 1

random uniform

Posted: Thu Aug 27, 2009 2:42 am
by gastoncoma
Hi guys, trying to understand the way of using this random uniform equation.

I understand that:
RANDOM UNIFORM( {min} , {max} , {seed} )

min is the minimum value and max the maximum value. For example 0, 1 but what is the seed thing about??? It's driving me creazy as I read the help and it obviously doesn;t help me at all!!

I don;t need any third number, I just want a random number between 0 and 1

Posted: Thu Aug 27, 2009 6:22 am
by Administrator
The noise seed is useful when doing monte carlo simulation. Just create a parameter called NOISE SEED and set it to any value and use it in all RANDOM *** functions.

Posted: Thu Aug 27, 2009 6:24 am
by gastoncoma
so what value should I use? a zero, a five, any number?

Posted: Thu Aug 27, 2009 9:12 am
by Lee Jones
If you are using NOISE SEED in the model, set the value for "seed" in random_uniform to "0"

Posted: Thu Aug 27, 2009 10:42 am
by bob@vensim.com
Always set the last argument (which is actually a stream ID not a seed) to 0 unless you have a specific need to create separable random number streams (a rare requirement). Add the constant NOISE SEED to the model if you want to select different noise realizations for sensitivity simulations or other reasons.