NEW YORK (AP) — The NBA's biggest losers were the big winners in the draft lottery.

The Minnesota Timberwolves will have the No. 1 pick in the upcoming draft. It's the first time since 2004 the team with the worst record has won the lottery.

The top pick gives the Wolves an opportunity to take big men Karl-Anthony Towns of Kentucky and Jahlil Okafor of national-champion Duke to put next to Rookie of the Year Andrew Wiggins.

The Los Angeles Lakers moved from the fourth spot to second, keeping a pick they would have sent to Philadelphia if it had fallen outside the top five. The 76ers are third, followed by the New York Knicks. The Knickerbockers entered the lottery with the second-best chance to get the No. 1 pick.

Orlando has the fifth pick, followed by Sacramento, Denver, Detroit, Charlotte and Miami.

Copyright 2015 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.