Minnesota Timberwolves owner Glen Miller poses for photos after the...

Minnesota Timberwolves owner Glen Miller poses for photos after the Timberwolves won the No. 1 pick in the NBA Draft lottery Tuesday, May 19, 2015, in New York. Credit: AP / Julie Jacobson

The Minnesota Timberwolves won the NBA draft lottery Tuesday night, the first time since 2004 the team with the worst record won the No. 1 pick.

After years of bad luck in the lottery, things finally worked out for the Wolves, who can perhaps choose between 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 fell outside the top five. The 76ers are third followed by the Knicks, who had the second-best odds of winning but instead fell to fourth 30 years after winning the first draft lottery and drafting Hall of Famer Patrick Ewing.

Not since Orlando won the right to pick Dwight Howard in 2004 had the NBA's ultimate game of chance came out in favor of the team with the best odds. The Timberwolves had a 25 percent chance of landing the top pick after finishing 16-66.

But their fans knew not to get their hopes up after the Wolves had fallen backward eight times previously, including both times they were in the pole position, 1992 and 2011.

Several hundred fans gathered to watch on the big screen at Target Center in Minneapolis and erupted when the Lakers card came out of the envelope for No. 2, meaning Minnesota had finally earned the top pick for the first time.

"Hope is nice to have," said Jason Vincent, a fan of the team since 2001.

The Lakers were the other big winners even without moving all the way to the top. Their pick was only protected in the top five as a condition of their trade with Phoenix for Steve Nash in 2012. That was dealt this season to the 76ers, who could have ended up with two top-six picks if the Lakers had fallen backward two spots.

More NBA news

Newsday LogoSUBSCRIBEUnlimited Digital AccessOnly 25¢for 5 months
ACT NOWSALE ENDS SOON | CANCEL ANYTIME