I am using AnyLogic's Traffic Road Library and I know it's possible in the car Source module to define the initial position of the car in a parking lot.
I want the parking lot space to be randomly chosen. I know there is this function randomFreeSpaceIndex()
that returns the index of randomly chosen free parking space.
But I do not know how to call it on my car source or use it with the CarMoveTo tool. Here is my model so far.
Any help is appreciated!