A man picking up food for his family and a newly hired utility worker doing on-the-job training were among those gunned down randomly Tuesday by a hate-spewing lunatic in California, authorities said.

PG&E employee Zackary Randalls, 34, and Catholic Charities clients Mark Gassett, 37, and David Martin Jackson, 58, had the misfortune of crossing paths with crazed gunman Kori Ali Muhammad in Fresno.

Muhammad, 39, nicknamed “Black Jesus,” has been booked on four counts of murder for allegedly gunning down three people Tuesday and a Motel 6 security guard last week. Just before he was apprehended, Muhammad screamed “Allahu Akbar,” the Arabic phrase for “God is great.”

Randalls had been training with PG&E in a classroom and Tuesday was his first day out in the field – riding along with a veteran utility employee, the Fresno Bee reported.

Muhammad, who can be seen in YouTube videos rapping about shooting “white devils,” opened fire into the passenger side of their company truck, killing Randalls.

“From what I’ve heard, this was racially motivated,” said Randalls’ childhood friend Joey Contente. “That makes it even sadder because Zack was truly a person who never saw color in anybody.”

Randalls was married for eight years to a local elementary school teacher and they had two kids, a 4-year-old boy and 3-year-old girl.

“He (Randalls) was truly the best person I’ve ever known,” Contente said.

Gassett had two sons, 9 and 13, according to his mom Rosie Wagner.

“He had two beautiful little boys,” Wagner tearfully told CNN. “He was a good hearted person, very caring, very loving.”

Gassett and Jackson were both clients of Catholic Charities and shot near the charity’s Fresno headquarters.

Gassett was carrying a grocery bag of food he had just picked up from the charity when he encountered the gunman.

Ex-wife Lisa Gassett said he had been struggling in recent years but still maintained a generous spirit.

“He would give his shirt off his back for anybody,” she told the Fresno Bee. “That is the kind of guy he was.”

Gassett had two sons, 9 and 13, according to his mom Rosie Wagner.

“He had two beautiful little boys,” Wagner tearfully told CNN. “He was a good hearted person, very caring, very loving.”

Witness Monique Skinner, who lives near Catholic Charities, said she saw one of the charity victims draw his last breath.

She didn’t name the victim, but said he had been carrying a bag of groceries, was known to be homeless and was shot at least three times in the torso.

“The man, he’s homeless. I really felt for that,” Skinner said.

“He was coming from getting him something to eat. He wanted to eat. (He) was an innocent bystander, that man. No matter what color that man was, he didn’t deserve to die. No matter what color we are, we don’t deserve to die. Because that man has family out here, he has kids out here, he has somebody that’s going to miss him.”

The Motel 6 security guard allegedly shot and killed last week by Muhammad had been previously identified as 25-year-old Carl Williams.