Virginia used a random drawing on Thursday to select Republican David Yancey as the winner of a deadlocked state House election — a race that had been contested since November.

The State Board of Elections certified Yancey’s selection after a short ceremony in the state’s Patrick Henry building in Richmond after picking his name out of a ceramic bowl.

Democrat Shelly Simonds, who was on hand for the drawing, looked on stoically with her husband and daughter by her side.

“This is a sad conclusion for me,” Simonds said, adding that she would look at her options before seeking a recount.

Yancey didn’t attend the selection.

Simonds thought she had won the Nov. 7 race against Yancey, the incumbent, by one vote in a recount on Dec. 19.

But the next day, a three-judge panel ruled the race was a tie after deciding a ballot originally not counted that circled both Simonds and Yancey was intended for the Republican incumbent.

The circle around Simonds’ name had a line through it, the panel said, invalidating it.

​That left the two candidates deadlocked at 11,608 votes each.​

To settle the matter, the Board of Elections planned to break the tie by selecting the winner from a clear glass bowl before Christmas in Richmond.

But Simonds’ lawyers challenged the recount process in Newport News Circuit Court, arguing that it’s necessary to protect the integrity of the vote.

The court allowed the drawing to proceed Wednesday.

The race for the 94th House of Delegates in Newport News is significant because party control of the state House hung in the balance.

With Yancey’s win, Republicans have a 51-49 advantage in the chamber, pending the results of another recount.

With Post wires