10-10-2017 05:15 AM
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!
Solved! Go to Solution.
10-10-2017 05:29 AM
have a look here
10-10-2017 05:53 AM
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?
10-10-2017 06:03 AM
j < k !
Try j > k and see what happens
10-10-2017 06:09 AM
I'll do it according to your suggestions!
Than u!
3 weeks ago
what does the parameter ( i ) mean in the function?
3 weeks ago
It's the integer for setting ( different ) random seed values ( s. also random number seed values in help file)
3 weeks ago
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?
3 weeks ago - last edited 3 weeks ago
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.