Exactly. It's random who wins the election: The spy owner gets one point for each turn of the election period in which their spy is in the CS. The chance of winning is (their points)/(sum of the points collected by all players). After the election, the numbers are reset to zero.This seems to be the closest answer looking at the 2UC code. Spies stationed in a city grants points each turn, and then the winner is decided a weighted draw between players based on the number of points they have.