It wasn’t a pretty game, but Friday night in Madison Square Garden the New York Knicks, thanks to a balanced scoring effort and a good game from Zach Randolph, beat the Philadelphia 76ers 89-81.

For the Knicks, who have played well lately, Jamal Crawford (just 6-of-19) had 18 points and 5 assists. Zach Randolph (8-of-12) had 16 points and 15 rebounds. David Lee (6-of-8) had 14 points, Nate Robinson 13, and Eddy Curry 11.

For the struggling Sixers, Andre Iguodala (10-of-20) had 24 points, 6 rebounds and 3 steals, Willie Green (just 5-of-13) scored 13 points, Samuel Dalembert 12 with just 5 rebounds, and Andre Miller had 10 points with 6 assists.

Both teams struggled from the free throw line and three-point range. The Knicks controlled the glass. And they had 22 assists, while the Sixers only totaled 14.

“I just think, right now, we are playing again with a lot more trust,” said Knicks president and head coach Isiah Thomas. “We have good shot distribution. Everyone feels a part of the game.”

Randolph was especially impressive. “He had a nice offensive game,” said Sixers head coach Maurice Cheeks.

Iguodala recognized Crawford’s scoring ability: “Crawford is good. He can shoot.”

Crawford continues to nail tons of tough, off-balance, outside jumpers, often with time running out on the clock. It’s an impressive skill.

Fred Jones didn’t play for the Knicks. He has flu-like symptons. Also, Stephon Marbury is out for a long time after surgery.

The Knicks are now 10-14 at home. And the Sixers have now lost 7 of their last 8 road games.

New York now heads out West for a five game road trip. They face tough competition and could rack up several losses.

Only the Miami Heat are lower than the Knicks and 76ers in the Eastern conference standings.