I want to clamp a stock between -10 and 10 in AnyLogic.
I currently use an own defined java function for this. Is there any better solution for this?
I want to clamp a stock between -10 and 10 in AnyLogic.
I currently use an own defined java function for this. Is there any better solution for this?
Benjamin
On
If you want to explore all possible random distributions, put your cursor into a code field. Then, at the top of AnyLogic, the tiny icon called "Distribution Wizard" pops up:

Play around and it will write the correct code to apply it.
Copyright © 2021 Jogjafile Inc.
there's a big set of distributions in anylogic
for example
uniform(-10,10)will give you a random value between -10 and 10