The order of the draft teams is decided at the draft meeting before the draft meeting.
These teams have their own needs. Generally, 1 round will select good players, and most of these players are more powerful and famous in American college basketball, and some international players, such as Yao Ming, will also be selected.
Usually, before the draft, NBA teams will find some interested rookies to try their abilities. The inspection is multifaceted. NBA training is very systematic. Whether they are good players or not can be seen after training.
For example, the NBA team needs a power forward, choose a power forward and choose which position is short of people. There are also trading draft picks for more powerful active players.
But a player like James will choose the team with 1 draft pick in the draft, even if there is a small forward with 10 in the team.