What are the odds?

A poker pro who was toting $100,000 after a big win in Atlantic City escaped with his cash from two harrowing robbery attempts while trying to catch a flight out of Kennedy Airport.

Eric Riley, 32, got a ride to the JetBlue terminal on Wednesday from a so-called friend named Junior — but greed got the best of his pal when they got to the airport, police sources said.

The driver tore away from Terminal 5 with his trunk still open just as Riley tried to grab his duffel bag of bills, the sources said.

Stunned by the betrayal, Riley hopped into the first yellow cab he could find, handed the driver four $100 bills and shouted, “Follow that car!”

The cabby caught up to the crook at a red light several blocks from the terminal, near the JFK Expressway. At that point, Riley jumped from the cab and snatched his bag back from the still-open trunk — and Junior sped away, police sources said.

Just then, a black Camry pulled up to the scene, with two men inside claiming to be undercover cops and offering the flustered Riley a ride, according to law-enforcement sources.

Thinking he had caught a break, Riley got in and told the alleged cops about the robbery attempt.

But the men turned out to be a pair of jokers — who put a gun to his chest and demanded he give them the cash, police sources said.

Instead of giving up, the dumbfounded gambler refused, clutched the bag to his chest and made a daring leap from the moving car. He rolled down the highway, getting road rash as his clothes were torn to ribbons.

Riley then hailed a second cab and told a nearby cop his wild tale. PAPD detectives are now investigating whether all three crooks were in cahoots.

Riley first checked into Borgata Hotel Casino & Spa in Atlantic City two weeks ago with $80,000 — and raked in $20,000 more from playing cards.

While at the hotel, he met up with Junior, who learned he was holding a lot of cash, law-enforcement sources said. Riley never learned the last name of the man, who made off with a suitcase full of his clothes and a laptop, according to police sources.

Riley, who lives in Deerfield Beach, Fla., is a skilled poker pro who won $82,000 at a recent tournament with a $2,500 buy-in, according to poker Web site Bluff.com. He has earned roughly $261,000 during his career and is ranked the 516th-best player in the world, according to the site.

He also has a job selling linens to hotels, police sources said.