# Raft Leader Election (Contiune...)


![left](./student-guide/diagram/03-Raft-Leader-01-03.png)

------------------------------------------------------------
Next, let's look at a special case where after the election timeout triggers an elect, more than 2 nodes increment their terms, change themselves to the role of candidate, and vote for themselves. And they received exactly the same number of follower consent messages, what should I do at this time? The system will re-launch a new round of voting until a unique leader is produced. In order to avoid the possibility of a leader being elect or repeated multiple times, we can use an algorithm called random election timeout to reduce the probability of repetition. This algorithm can be understood as the leader at the beginning of each node At the time of elect, an election timeout within an interval is set randomly instead of using a uniform value, so there is a high probability that multiple candidates will have the same number of votes. 

