random deciding winner on tie, input is ranked