why are my breaks hard randomly at slower speed with a weird noise? on 1995 Ford Ranger

sometimes 1-5 times in a row then it will break fine for a whole day
I have 4x4 abs does this matter?

2 answers
ABS light on?
Sounds like problem with brake booster. Maybe first replace check valve on it and look for any vacuum leaks to it.