The Detroit Pistons did a lot of losing this season, finishing with the second-worst record in the NBA and the franchise’s worst record in nearly 30 years.

It paid off.

The Pistons won the NBA draft lottery on Tuesday night, grabbing the No. 1 pick in the July 29 draft and presumably the chance to select Oklahoma State guard Cade Cunningham. If the Pistons keep the pick, it’ll be the first time they select No. 1 overall since taking Bob Lanier in 1970.

Houston will pick second, Cleveland will pick third, and Toronto will pick fourth. Orlando will get the No. 5 and No. 8 selections, with Oklahoma City picking No. 6 and Golden State also with two lottery slots – No. 7, as part of a trade with Minnesota, and the Warriors’ own pick at No. 14.

The rest of the lottery results: Sacramento picks No. 9, New Orleans No. 10, Charlotte No. 11, San Antonio at No. 12, and Indiana at No. 13.

The lottery – 14 ping-pong balls, all numbered 1 through 14, placed into a hopper – technically only determines the first four picks. The rest then default to a pre-established order of finish; Golden State, for example, had only a 2.4% chance of its own pick being anything other than the No. 14 selection.

And form held through the first six picks that were unveiled. The No. 8 pick, which was slotted to go to Chicago, winds up with the Magic as part of the Nikola Vucevic trade from this season. That’s when the first significant buck-the-odds move happened, when Toronto’s 31.9% chance of cashing into a top-four slot delivered.

The Thunder will have three first-round picks, but none higher than No. 6.

The Rockets had a 52% chance of winning a top-four pick – which meant it was basically even money.

The worst Houston could do was the No. 5 selection, and that truly was a worst-case scenario because if the Rockets were outside of the top four the pick would convey to Oklahoma City as part of the compensation for the Russell Westbrook trade between those teams in 2019.

But they held on, getting the No. 2 pick as one of the building blocks they can use to reload after finishing with the NBA’s worst record this season.

The consensus opinion has been that the No. 1 pick will be either a one-and-done college player – Cunningham, Southern California center Evan Mosley or Gonzaga guard Jalen Suggs – or someone from the G-League development program like guard Jalen Green or forward Jonathan Kuminga.

And, as always, it’ll be a guessing game: Most of the players expected to be lottery picks are teenagers, mostly 19, some 18.

The rest of the first round, for now, is slotted this way – Washington will pick 15th, followed by Oklahoma City, Memphis, Oklahoma City, New York, Atlanta, New York, the Los Angeles Lakers, then Houston at both No. 23 and No. 24, followed by the Los Angeles Clippers, Denver, Brooklyn, Philadelphia, Phoenix and Utah.

76ERS: Ben Simmons clanked one free throw off the back of the rim, so he took a breather, fist-bumped Joel Embiid, paced, walked back to the line and bonked another shot.

Hey, the 76ers still led the Hawks by 23 points at that point, Game 5 seemed in the bag, so what’s two missed free throws?

Just 1 second in game time later, Simmons was back at the line – Atlanta using a Hack-A-Ben strategy to its advantage in the playoffs – and Simmons swished one to the roar of the crowd.

Back for the second shot, a 76ers fan wearing a No. 25 Simmons T-shirt simulated proper form from the stands, only to have Simmons knock one off the front of the rim.

Yes, a three-time All-Star in the first year of a $177 million max deal received a pity ovation in Philly.

Simmons missed a stunning 10 free throws in Game 5 – and that seemingly insurmountable lead turned into an epic defeat that helped usher the top-seeded Sixers out of the postseason.

Fans were devastated, the media pounced and Simmons shouldered the blame for the collapse.

No matter the reaction, the No. 1 pick is the No. 1 question headed into the summer: Can the Sixers fix Ben Simmons?

Better yet, is Simmons willing to fix his flaws?

Sixers President Daryl Morey tiptoed around most Simmons questions on Tuesday, though he said he still believed the guard could be part of a championship nucleus with Joel Embiid and Tobias Harris. The door, though, is always open for a deal.

“Not addressing Ben Simmons, but any move that will help our team win the championship or improve our odds, we will look at or do if it makes sense,” Morey said.

Simmons shot 25 for 73 (34%) from the line in the playoffs and missed 27 alone against the Hawks. He is a 5 for 34 career 3-point shooter over four NBA seasons and shot at least 60% from the foul line each of the last three regular seasons.

Herb Magee, known as the Shot Doctor over a Hall of Fame career as a Philadelphia college basketball coach, attended Sixers practices when Brett Brown coached the team and the two discussed ways they could fix Simmons’ form.

“He has that look on his face where he’s afraid to go to the foul line,” Magee said. “He almost has no chance of making it. The ones that do go in are probably more luck than anything else. It’s a shame because he’s extremely talented.”

Magee said improvement can come through proper teaching, practice, repetition and commitment.

“I don’t see any reason why he shouldn’t be a bare minimum of 70% from the line,” Magee said. “But his technique is wrong.”

Simmons’ woes drew comparisons to fellow Philly No. 1 draft pick Markelle Fultz, who lasted 33 games over two seasons before he was traded to Orlando, in part because of a hitch in his shot.

Simmons pinned his playoff failures on a mental block more than mechanics. Once the misses started coming in waves, especially under the playoff spotlight and with scant time to hit the gym and practice, Simmons could never reverse the trend.

Joel Fish, director at the Center for Sport Psychology in Philadelphia, has worked extensively with athletes of all ages and skill levels, from youth sports through athletes with the Eagles, Sixers, Flyers and Phillies for 30 years. Fish, who has not worked with Simmons, said the underlying feelings of shame, embarrassment and humiliation that come with repeated failures can inhibit even the hardest workers from getting any better.

“On the one hand, it’s the easiest of sports tasks. It’s the same shot every time,” Fish said. “Having said that, the expectations become, `Why can’t you do this?’ They become higher on free throws. So if you can’t do it, the same shot every time, the shame, embarrassment and humiliation is even more than if you shoot 25% of your 3s instead of 35% percent.”

Fish said a broken athlete needs to develop a personal “mental skills game plan” that can help conquer any demons.

“Mental blocks can be overcome,” he said. “Part of the routine is, `What am I feeling? I’m a little nervous. That’s OK. I know what to do. Deep breath. Slow myself down. Check. My feelings aren’t too high, too low.’ Choose not to go there. You develop a routine that has a feeling part to it and a thoughts part to it. Check your feelings, check your thoughts.”

There are other issues with Simmons. He has leaned on family to coach him during the offseason and often works outside the team’s New Jersey headquarters. At 6-foot-10, 240 pounds, Simmons could be a more natural fit at power forward rather than as the primary ballhandler. Morey either downplayed off-court concerns or left personnel decisions up to Coach Doc Rivers.

“I believe we know what the right work is,” Rivers said. “And the right type of work, and the right way to do it. You can do the work all the time, but if it’s not done in the right way, and the right type of work, you may not improve. After being here for a year, I really do believe we’ve identified what and how, and now we have to do the `do’ part.”

Simmons also has not yet made a decision on playing for the Australian national team in Tokyo. Morey said Simmons could benefit from playing in the Olympics.

“I think it could, frankly, enhance” his game, Morey said. “There’s skill work, but then playing games is helpful.”

Simmons has found few positives over the last two months. Shaquille O’Neal claimed he would punch out Simmons if they were teammates and Charles Barkley said Simmons was “scared to death to shoot.” Sixers center Dwight Howard posted an impassioned Instagram video imploring critical fans to leave Simmons alone and former Philadelphia Eagle Terrell Owens commented on the post, “you have to change the environment which means Ben is part of what needs to be changed.”

Simmons chalked up the criticism to playing in Philly.

“I am who I am. It is what it is,” he said. “The first thing I’m going to do is clear my mind and get my mental (health) right.”

Comments are not available on this story.