Updated:NEW YORK (AP) -- (AP)ong> - The Orlando Magic had the third worst record in the NBA last season, but didn't have the luck of the ping pong balls on Tuesday night. The Magic ended up with the fourth overall pick in next month's draft.
Orlando also has the 12th overall pick thanks to previous trades.
The Cleveland Cavaliers have continued their remarkable lottery luck, winning the No. 1 pick in the NBA draft for the second straight year.
It's the third time in four years the Cavs will be atop the draft after moving up from the ninth spot. They had just a 1.7 percent chance of winning the top spot Tuesday night.
They drafted Kyrie Irving first in 2011 and will hope to do better with this win than last year, when they took Anthony Bennett, who had a forgettable rookie season.
The Milwaukee Bucks fell one spot to second and the Philadelphia 76ers will draft third.