Orlando senior VP Pat Williams did what he does best last night – he won the NBA lottery, giving the Magic the top pick in the June 24 draft, and a sliver of hope. But will that hope be enough to mollify Tracy McGrady and turn around their flagging franchise?

“This is our World Series; these are our Finals,” said Williams, who brought home No. 1-overall picks in 1992 and ’93 to Orlando, and 1986 to Philadelphia. “We have a trophy case with no trophies in it; we have ping-pong balls. This baby is going right in the trophy case.”

And that sums up the nature of the lottery; the bad teams keep coming back. The Clippers got the second pick and the Bulls the third, with expansion Charlotte locked in at No. 4.

How did the Magic get the pick despite other clubs’ voodoo, like 76ers GM Billy King bringing a horseshoe from Smarty Jones? Easy; on merit. “We have plenty of ping-pong balls. We earned them,” said Williams, who has landed the No. 1 pick four of his seven trips to the lottery.

Orlando suffered through an NBA-worst 21-61 year and had the best odds – 25 percent – of getting the top pick. The worst team had landed the top pick only twice – the Clippers in 1988 and Nets in 1990 (last season, the Cavs and Nuggets tied for the worst record, but Denver had better lottery odds due to a tie-breaker).

“We’ve struggled through a really difficult period. We needed a shot in the arm,” said Williams, who quoted Proverbs by saying, “Man rolls the dice; God determines the outcome. We really feel were blessed.”

With whom have they been blessed? UConn’s shot-blocker Emeka Okafor is undersized with a bad back, but is the most NBA-ready. Atlanta schoolboy star Dwight Howard is likened to Kevin Garnett, but his toughness is questioned. Duke’s Luol Deng has just one year of college.

McGrady can opt out after next season, and The Post quoted a McGrady confidant who says that the star will do so and accept trades to the Lakers, Spurs, Suns and Rockets.

“Tracy and the Magic are on the same page,” Williams said. “We both want the same thing; we want to get better. Tracy wants to be on a good team; we want to have a good team.”