Baseball it is often said is a funny game and nights like Thursday give life to that adage.

The kind of laughter rolling through Rangers Ballpark though varied from the kind that comes with disbelief to the kind that would put a man in the nuthouse to at the end both.

Somehow the Texas Rangers managed to have the last laugh when one swing of Jurickson Profar’s bat kept hope alive.

Profar started the bottom of the ninth with a pinch-hit home run to right field and the Rangers overcame the sloppiest defensive inning in club history to walk off with a 6-5 victory over the Angels.

The win kept the Rangers two games behind Tampa Bay in the wild-card standings and a game behind Cleveland with three to play in the race for two playoff berths. The walk-off was the Rangers’ fourth straight against Los Angeles at Rangers Ballpark.

“We know what’s at stake” manager Ron Washington said. “We’re fighting every night. I think they showed you that tonight.”

The Rangers had to pull off an escape in the ninth inning after a top of the inning in which Neal Cotts walked Josh Hamilton who moved to third with one out. Joe Nathan though struck out Kole Calhoun and Mark Trumbo to set the stage for Profar.

He was the choice over Lance Berkman who was prepared to pinch-hit in the eighth. The Rangers were hoping Profar could get on base ahead of Leonys Martin and the top of the order.

“He gave me the opposite of what I was looking for” Washington said.

Profar who had had only one at-bat the past eight days jumped on a 1-1 pitch from Michael Kohn and lifted it into the seats above the 349-feet sign in right field.

“I was just looking to have a good AB get on base and made a perfect swing and it went out” Profar said.

The Rangers surpassed 3 million fans (3019430) for a second straight season on a night they drew their smallest crowd (26198). Many were primed to leave early.

Four errors in the second inning the most in an inning in club history led to three unearned runs against Matt Garza. Each gaffe came with two outs only moments after the Rangers had scored three times in the first to take a 3-1 lead.

Garza had retired the first two batters of the second easily. The third No. 9 hitter Andrew Romine hit a two-hopper toward first and the ball smacked Mitch Moreland in the ankle for an error.

J.B. Shuck followed with a single but Garza got Erick Aybar to hit a roller to second base. It got through Ian Kinsler though as Romine scored and Kinsler’s throw to third got away from Adrian Beltre and allowed Aybar to go to second.

Beltre committed the fourth error as Mike Trout sent a short chopper to third. Beltre bare-handed the ball then threw wildly while trying to get the speedy MVP candidate. Two more runs scored and the Rangers were suddenly and inexplicably down 4-3.