reset password
Author Message
rmedina0531
Posts: 19
Posted 15:23 Apr 05, 2020 |

Route selector picks a random route from those available. It checks if the middle path currently exists. If there is a middle path, if there are no current agents on any path, pick one at random,
if there are then randomly check to see if the commuter takes does not take a less efficient path random(0,100) < 100 - randomness. On the case that it does not then make its path the same as the current most efficient path
if not then make the its path a random choice from the three

The steps are the same if there is not a middle path, it just has 2 paths to pick from instead of three