Here's how the lottery works:
Fourteen ping-pong balls will be placed in a drum, each with a number between one and 14 on it.
Four balls will be drawn out of the 14, leaving 1,001 possible four-digit combinations.
Before the lottery takes place, 1,000 of the potential combinations will be randomly assigned to participating teams, with the team in possession of the worst regular season record (the Charlotte Bobcats in this case) receiving the most.
Once the first set of four balls are selected, the team assigned that particular combination receives the first pick of the draft.
Those balls are then placed back in the drum where the process is repeated again for the second pick, and once again for the third pick.
If the one unassigned combination comes up at any point, the balls are put back into the drum, and the draw will take place again.
After the first three picks are assigned, the order of selection for the remaining teams will be determined by inverse order of their regular season record.