Zach Randolph emerged from the locker-room shower strutting and singing a little ditty that had his teammates laughing.

Randolph couldn’t carry much of a tune Monday night but he made music with the basketball in his hands and lifted the Grizzlies to a 94-92 victory over the Denver Nuggets in the Pepsi Center.

The veteran forward got serious in the second half, bullying his way around the basket to ensure the Griz ended a two-game losing streak and get back into the Western Conference playoff standings.

“I got in a rhythm,” Randolph said after leading the Griz by tossing in 15 of his 20 points in the second half to go with 11 rebounds. “I just got it going and the guys kept getting me the ball.”

Memphis (44-30), Dallas and Phoenix now have identical records. Dallas owns the seventh seed because it has the tie-breaker against Memphis, which sits in the eighth spot because of a tie-break advantage over ninth-place Phoenix.

The musical chairs promises to continue until the final week of the regular season when those teams play each other.

Memphis played with the sense of urgency that coach Dave Joerger wanted after losing back-to-back games at Golden State and Phoenix. The Griz even enjoyed an offensive resurgence from guard Courtney Lee, who matched backcourt mate Mike Conley with 19 points.

“This game meant a lot to us. We needed to get it,” Lee said. “We just dominated down low. They played three point guards at one point so we even posted up Tayshaun (Prince). It was the right read. They started making some shots but it worked out to our advantage.”

An injury-plagued Nuggets team pushed the Griz until the final minute. Memphis clung to an 88-86 lead when Randolph got a hook in the lane to fall over Denver center Timofey Mozgov.