Niue's former Finance Minister, Toke Talagi, has been returned to the Legislative Assembly after his name was drawn from a hat.
The Niue news internet site says that at first it appeared that Mr Talagi had lost his common roll seat in Alofi South by two votes.
However a recount left both candidates tied.
The final result was decided when a senior official at the justice department drew a name from a hat.
Mr Talagi took the seat from the earlier, provisional winner, businesswoman, Maihetoe Hekau.