random uniform

Use this forum to post Vensim related questions.
Post Reply
gastoncoma
Junior Member
Posts: 13
Joined: Mon Aug 17, 2009 4:07 am

random uniform

Post 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
Administrator
Super Administrator
Posts: 4838
Joined: Wed Mar 05, 2003 3:10 am

Post 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.
gastoncoma
Junior Member
Posts: 13
Joined: Mon Aug 17, 2009 4:07 am

Post by gastoncoma »

so what value should I use? a zero, a five, any number?
Lee Jones

Post by Lee Jones »

If you are using NOISE SEED in the model, set the value for "seed" in random_uniform to "0"
bob@vensim.com
Senior Member
Posts: 1107
Joined: Wed Mar 12, 2003 2:46 pm

Post 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.
Post Reply