The shot distribution was better for the Knicks, and so was the result.

The Knicks rode a much more balanced offensive attack to a 123-111 victory over the Los Angeles Clippers at Madison Square Garden on Wednesday night to snap a season-long four-game losing streak.

Six different Knicks scored in double figures — including all five starters — in a stark contrast to Monday night’s 121-90 loss in Detroit.

“We played a little desperate tonight,” point guard Jalen Brunson said. “We needed a win, and I think the way we competed, the way we played … was Knicks basketball.”

Brunson led the Knicks with 26 points on 9-of-12 shooting and seven assists.

Karl-Anthony Towns scored 20 points on 6-of-18 field goals with 11 rebounds and a season-high seven assists.

Towns overcame a slow start to score 10 points in the fourth quarter, helping the Knicks pull away in what had been a tightly contested game to that point.

And OG Anunoby added 20 points while shooting a hyper-efficient 8-of-10.

It was a far cry from Monday night’s loss to the Pistons, when Towns and Anunoby took only four shots apiece and Brunson attempted more than twice as many (21) as anyone else.

With the win, the Knicks (24-13) avoided their worst losing streak since December of 2022, when they dropped five in a row.

“I applaud our guys, because we hit some adversity,” head coach Mike Brown said.

“One of our standards is, ‘Hey, let’s stay connected.’ It’s up to me and KAT and Jalen to keep the group uplifted and connected, as well as everybody else in that locker room, and the guys did a heck of a job.”

The Knicks’ utilized better ball movement from the opening tip.

That was evidenced by the fact Brunson did not take his first shot until the 6:23 mark of the first quarter. His driving layup was the Knicks’ 11th shot attempt, and every other starter had taken at least two by that point.

Also demonstrating the Knicks’ urgency Wednesday was Brown’s decision to insert guard Miles “Deuce” McBride into the starting lineup and move center Mitchell Robinson to the bench.

McBride rewarded the Knicks with 16 points, including a trio of 3-pointers in the first three minutes of the second quarter.

But Los Angeles led, 56-51, at halftime, largely on the strength of Kawhi Leonard’s 21 points at the break.

Towns, meanwhile, managed only six points on 2-of-8 shooting in the first half as he struggled to get going against Clippers 7-footer Ivica Zubac.

But Towns continued to attack Zubac in the third quarter, and he finally drew a couple of fouls against the big man. That included a three-point play that tied the game, 70-70.

Brunson took over from there, scoring 11 of the Knicks’ 39 points in the third quarter.

“They had two on the ball on me for the majority of the game,” Brunson said. “So I just tried to attack it and tried to get off it quick to see if we can have advantage, four on three, and toward the end of the game, I got away a little bit.”

The Knicks went up, 88-87, on a Jordan Clarkson three-point play with under a minute remaining in the third quarter, and they led, 90-87, going into the fourth.

Towns then broke out to begin the final quarter, scoring nine points in the first 4:06 of the fourth as the Knicks went up by double-digits.

“I made some shots. I didn’t make a lot of them, but I think tonight just shows aggression wins,” Towns said. “Not letting go because some shots weren’t going in. … Just stayed very aggressive, any opportunity that I got, and at the end of the day, it worked out for our team.”

Mikal Bridges scored 15 points, while Clarkson added 12 off of the bench. Guerschon Yabusele gave the Knicks eight points in 13 minutes.

All five starters attempted at least 10 shots, and none took more than 18. The Knicks racked up 31 assists and shot 47-of-94 (50%) as a team.

Leonard finished with 25 points after scoring only four in the second half.

Next up for the Knicks is a four-game road trip, beginning Friday night in Phoenix.

“I don’t think we were at our best today, but we did enough to win,” Towns said, adding, “This is a good start before getting on the road trip to stop the bleeding with four losses in a row and finally get one on the left column.”