We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I am trying to create a parking lot simulator for my first year engineering class. You can find the details for the assignment here: http://docdro.id/7ZyzCEF. I'm now trying to complete the third milestone. The cars are supposed to randomly enter the lot and then random stalls should become occupied (turn red) when the car enters. The stalls should be occupied for a random amount of time before the car leaves the lot out the exit. I managed to make the cars enter the lot randomly, however from there I don't know how to make them randomly occupy stalls and stay there only for a specific time before leaving again. Does anyone know how I would do this?
[ code in comments ]