Reputation:
I'm trying to archive the following within Anylogic: I have several processes that are all somehow distributed. These distributions involve random number generation.
As of my understanding anylogic creates one random number stream from which any process takes its random numbers. But actually I want to have another random number stream for each process. Anyone has an idea how to do this?
I hope you understand what I'm trying to do and that you're able to help me.
Upvotes: 1
Views: 2034
Reputation: 1728
You can create your own random number generators like this: Random rng1 = new Random();
and use them in distributions like this uniform(2,5,rng1)
. This way rng1 is used as random number stream instead of the default one.
Upvotes: 1