Randy ex-Rep. Anthony Weiner is planning to head to an “intensive” rehab program to deal with his penchant for sending women lewd photos of himself before he looks for a new job, one of his former colleagues told The Post yesterday.

“It’s going to be something a bit intense,” said a House Democrat who remains in contact with Weiner. “That’s where he’s headed next.”

The source said that Weiner — a Democrat who quit Congress in disgrace — is now focused on saving his marriage.

His wife, Huma Abedin, is a senior aide to Secretary of State Hillary Rodham Clinton, and pregnant with the couple’s first child.

News of Weiner’s plans were disclosed the same day The Post reported that the he’s trying to play kingmaker, inserting himself into the jockeying to select his replacement in a special election likely to be held on Sept. 13.

“I can’t imagine he’s going to have any say in it,” said Assemblyman David Weprin, one of a handful of Queens Dems lining up for a shot at Weiner’s seat in the Brooklyn-Queens 9th Congressional District.

Rep. Joe Crowley, the borough’s Democratic chairman, said he has spoken to Weiner about the future of the district.

But Crowley told The Post that “the conversation was really more about how bad he feels about the situation that he’s caused.”

The county leader declined to elaborate.

Crowley said he has not decided who would get the party line.

Queens Democrats in contact with Crowley said the boss is simply humoring Weiner.

“I don’t think anybody’s taking it seriously,” one senior Queens Dem said of Weiner’s effort to help find a successor. “People feel sorry for him.”

Additional reporting by Fredric U. Dicker in Albany and David Seifman in New York