They aren't randomly assigned at all, AFAIK they are based on the conditions of the road, whether there is likely to people pedestrians around, the proximity of property in relation to the road and depth of visibility in the area. I do agree they don't always get it right, and if a fatal occurs...