question

Joe D avatar image
0 Likes"
Joe D asked Ben Wilson commented

Troubles with RNG seeds.

Hello, I have been using getstream(current) as my random seed generator but it seems to not be random as every simulation has exactly the same output. The only way I can get the outputs of my simulations to change is by changing inputs of an object (e.g. change the bottom value of my beta distribution from 2.5 to 1.5).

Am I misunderstanding getstream(current)? And is there a way for all of my simulations to be truly random and change output/random seed with every new simulation?

Thanks.

FlexSim 20.0.10
simulationflexsim 20.0.10random streams
· 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.

Ben Wilson avatar image Ben Wilson ♦♦ commented ·

Hi @Joe D, was James Rodgers's answer helpful? If so, please click the red "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
James Rodgers1 avatar image
1 Like"
James Rodgers1 answered Jason Lightfoot edited

Under the "Statistics" menu there is a check to "Repeat Random Number Streams". De-select this check box to have random number streams not repeat:


· 2
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 ·

And if you let run your model in an express license (demo version), it is a restricting feature and not a bug.

1 Like 1 ·
Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·

I don't recommend doing this since if/when you encounter a problem you'll want to repeat the events.

Instead go to the experimenter and change the replication number that is seeding all the streams for the interactive run.

Then when you want to run an experiment you've already tried a couple of replications interactively.

0 Likes 0 ·
1620949734188.png (3.8 KiB)
1620949792701.png (3.8 KiB)

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.