From wikipedia http://en.wikipedia....king_procedures
Three-way tie for the division or wildcard
If the three teams have identical records against each other in the regular season, the office of the commissioner conducts a draw with the teams designated as teams A, B, and C. First, team A plays team B with team A as the home team. The following day, the winner of the that game plays team C with team C as the away team. The winner of the game on the second day advances to the playoffs. The team designations are determined as follows:
If the teams do not have identical records against one another, and one team has a best record against both other teams, and another team has a winning record against the final team, the first team shall get the first pick of their team designation, the second team gets the second pick, and the last team is assigned the remaining designation.
If one team has a better record against both of the other teams, and the two other teams have the same record against each other, then the first team would get the first pick for team designation, and the other teams would draw lots. The winner of the draw would get the second pick, and the loser of the draw would be assigned the remaining designation.
If two teams have the same record against each other, and both have a better record than the last team, then the first two teams draw lots, with the winner choosing their designation first, the loser of the draw picking their designation second and the final team being assigned the remaining designation.
If each team has a winning record against one other team in the three team group, and a losing record against the other team in the three team group, the priority for choosing designations shall be chosen based on overall winning percentage within the three team group, any ties in winning percentage within the three team group will be broken by drawing lots.
Clear enough for everyone? It would be such a crazy way to end a season. Drawing lots and choosing designations for multiple play-in games.