The Cleveland Cavaliers won the right to draft James by winning the NBA 's annual lottery Thursday night .