It was a roll of the dice, but manager Terry Collins wasn’t going to let Mark Adams potentially beat the Mets facing a right-handed pitcher.

So Collins yanked his closer, Jenrry Mejia, with two outs in Wednesday’s ninth inning and inserted journeyman lefty Dana Eveland. The Mets got the desired result when Adams was retired on a slow grounder with the tying run at first base.

“Jenrry actually has great numbers against lefties,” Collins said after the Mets beat the Cardinals 3-2 at Busch Stadium. “It’s just that this guy [Adams] has killed righties this last week. I wasn’t going to let him do it again.”

Mejia had entered to protect a two-run lead and appeared in the clear after getting Matt Holliday to hit into a double play. But Allen Craig followed with an RBI single, prompting the switch to Eveland.

“Once Mejia is in the game you normally assume your closer is in there to stay,” Eveland said. “But Adams has been swinging the bat pretty well and I could throw a decent slider, I guess, so they figured it was a decent matchup, so they went with it.”