Cancel
Showing results for
Did you mean:

# how to use the function of z_uniform(i, j, k )?

Genius

Hello,everyone!

when I program a method,the function of "z_uniform(i,  j, k )" will be used to achieve certain goals. however ,I have no idea about it and I cannot find it in the "context help".Could you explain how to use it  in detail,What's more ,what does the parameters ( i, j, k) mean  in the functions ,what values it will return?

Looking forward to your directions !

Any help is great apprecitated!

8 REPLIES

Phenom

have a look here

# Re: how to use the function of z_uniform(i, j, k )?

Genius

Hi，simulator

Firstly,Thank you for your quick feedback!

Then,Must the parameter "start"(j) be less than the parameter "stop"(k)? or they are have no relation,namely ,they are respective?

# Re: how to use the function of z_uniform(i, j, k )?

Phenom

j < k !

Try  j > k and see what happens

# Re: how to use the function of z_uniform(i, j, k )?

Genius

I'll do it according to your suggestions!

Than u!

# Re: how to use the function of z_uniform(i, j, k )?

Experimenter

what does the parameter ( i ) mean in the function?

# Re: how to use the function of z_uniform(i, j, k )?

Phenom

It's the integer for setting ( different ) random seed values ( s. also random number seed values in help file)

# Re: how to use the function of z_uniform(i, j, k )?

Experimenter

I'm starting to learn the methods for simulation ... I still do not understand exactly how to set the seed value. Can it be any number? If not, how do I decide which number will be my seed value, when I'm defining a method to generate a random number in a range of 1 to 10, for example?

# Re: how to use the function of z_uniform(i, j, k )?

Phenom

The seed value is for creating different random number streams

so that for instance in a model with different random number generators

( e.g. for generation of failures on simulation objects ) the failures will not be generated at the same time

and have the same length.

Therefore you can set in your model a unique seed value by your self e.g. 1.

The seed value has an impact on the generated random numbers in between the defined range

but not on the range itself.