Generate different random numbers every time I run a model

Generate different random numbers every time I run a model

lucas_braga1
Not applicable
60 Views
2 Replies
Message 1 of 3

Generate different random numbers every time I run a model

lucas_braga1
Not applicable

[ FlexSim 7.5.4 ]

When I run a model using commands such as duniform(...) or randint(...), it generates a sequence of random numbers. But when I reset the model and run again I get the same numbers again. Is there any way to get a new sequence of random numbers when I reset the model?

Accepted solutions (1)
61 Views
2 Replies
Replies (2)
Message 2 of 3

jing_chen
Not applicable

You should uncheck the "Repeat Random Streams" in Statistics menu.

3413-randomstream.png

Message 3 of 3

Matthew_Gillespie
Autodesk
Autodesk
Accepted solution

You should use the experimenter. And run multiple replications. Unchecking the repeat random streams option is not advised since it makes it nearly impossible to debug your model.

Please read my response to this similar question: https://answers.flexsim.com/answers/26036/view.html



Matthew Gillespie
FlexSim Software Developer