If it appears that two (2) or more persons have-or would have had if the legal ballots cast or intended to be cast for them had been counted-the highest and an equal number of votes for the same office, the persons receiving such votes shall decide by lot, in such manner as the court shall by written order direct, which of them shall be declared duly elected, and the judgment shall be entered accordingly.
Idaho Code § 34-2022