Michigan coach John Beilein and Michigan State coach Tom Izzo were two of the big winners at the NBA draft on Thursday night.

No. Wait. The winner was actually the entire state of Michigan.

There were five players from Michigan selected in the first 21 picks. And, yes, we are claiming Kentucky’s James Young, who played high school ball in Troy and Rochester.

Beilein and Izzo each had two players drafted in the first round, which is a strong selling point that they can use to lure the next big recruit.

After Michigan’s Nik Stauskas was taken with the eighth pick by Sacramento, he celebrated briefly with his family and then hugged Beilein in the Barclays Center in Brooklyn.

“We play with a chip on our shoulder,” Stauskas told ESPN. “Coach Beilein and the assistant coaches have all done a great job.”

Stauskas is a ball of confidence and cockiness, the good kind of cockiness. The kind where somebody backs up to the edge of the gym or goes deep in the backyard and starts firing three-pointers and then he puts it on YouTube.

Stauskas was under the radar when he arrived in Ann Arbor. He was not highly ranked and he used that as motivation. He turned himself into a top 10-pick through drive and focus and determination and a work ethic.

Give Beilein a lot of the credit, too.

Beilein has quickly developed an impressive track record of turning players into first-round picks: Trey Burke and Tim Hardaway Jr. last year, and now Stauskas in the top 10.

That is a significant selling point when he is trying to recruit the next group of players.

Quick note: We hope, at some point, one of these guys will stay four years.

Which brings us to Adreian Payne, a power forward from Michigan State.

Payne was drafted by Atlanta with the 15th pick. He sat at a table with the mother of 8-year-old Lacey Holsworth of St. Johns, who died of cancer April 9.

Payne was transformed at MSU. Getting drafted in the first round is a testament to his hard work. As a freshman, he averaged just 2.5 points. But he improved every year. By his senior season, he averaged 16.4 points with 7.3 rebounds. He is everything that is good about college athletics.

He walked out of MSU with 141 blocks, the most in school history.

Most importantly, he walked out with his degree and the maturity of a man.

After getting drafted, Payne hugged Izzo.

“He did a great job with me,” Payne told ESPN.

And Izzo did a great job with Gary Harris, who was taken with the 19th pick by Chicago but dealt to Denver.

Counting Payne and Harris, Izzo has had eight players drafted in the first round, which is another selling point to future recruits.

Up next? Michigan’s Mitch McGary.

McGary was taken with the 21st pick by Oklahoma City.

Basically, McGary got drafted for what he did during the 2013 NCAA tournament. He might have been drafted higher last year, but he suffered a back injury, had surgery in January and faced a yearlong suspension for using drugs.

McGary entered the draft with uncertainty but he became another first-round pick for Beilein.

And then there was Young, who was drafted by Boston with the 17th pick.

Meanwhile, the Pistons didn’t have a first-round pick, so they waited and waited and waited some more, as several players went to other teams and they could do nothing about it.

Finally, in the second round, the Pistons drafted Spencer Dinwiddie, a 6-foot-6 guard from Colorado who is coming off a knee injury. On first glance, it was worth the risk, assuming he can recover. Dinwiddie was projected to be a first-round prospect until he blew out his knee in January.

But it’s clearly a gamble to take a guy who can’t even play right now.

“We are very comfortable with the medical reports and the stages he is at in his recovery,” said Pistons general manager Jeff Bower. “Obviously, our medical team dug deep into it and we had all of his records, where he is at.”

The Pistons will not say publicly when they think he might be able to play. Bower used words like “cautiously” and “slowly.”

So there is no telling when he will help the Pistons.

Dinwiddie considers himself a pure point guard.

“I think I showed that in college,” he said. “But at the same time, I think I bring defensive versatility with my size and my shooting. I expect to play multiple positions in the league, not just the one.”

Two picks after the Pistons took Dinwiddie, Michigan’s Glenn Robinson III was drafted by Minnesota.

That means all five players who started in the 2013 NCAA championship game for Michigan have now been drafted.

Beilein was thrilled, and he sent out a tweet late Thursday night: “Now that was a good day at the office!”