traffic routing random logic