question

Maria F avatar image
0 Likes"
Maria F asked Jason Lightfoot commented

getstream(current) vs. getstream()

What is the difference between

getstream(current)

getstream()

What is the default stream in v 22.0.1

Thanks


FlexSim 22.1.0
getstream
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

AboElfadl avatar image AboElfadl commented ·
What if I want the output label to as following

(1,2,1,2,1,2,1,2......)
I made the trigger to send item by 50% percentage
but I want it to be identically split.

0 Likes 0 ·
Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Joerg Vogel commented

getstream() is invalid syntax - it needs an object parameter (current in your example) so that it can create a reference for a new stream number that it stores centrally against that object. The stream represents a unique progression of random numbers. There's no such thing as a default stream unless you are referring to stochastic functions where the stream parameter is optional. In those cases - it's the same as any other optional numeric parameter - it will be evaluated as zero.

· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Joerg Vogel avatar image Joerg Vogel commented ·

if you have a statistical distribution and you don't set a number generator, then the default random number generator is 0.

0 Likes 0 ·
AboElfadl avatar image
0 Likes"
AboElfadl answered Jason Lightfoot commented

What if I want the output label to as following

(1,2,1,2,1,2,1,2......)

I made the trigger to send item by 50% percentage

but I want it to be identically split.

· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·
This has nothing to do with the question about getstream().

You choose "round robin" on the sendtoport.

Please do the tutorials and in future post a new question after searching this site and the documentation.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.