"characterized by randomness, chance, accidental," 1670s, from noun meaning "a chance, accident" (1570s), from hap (n.) "chance, luck" + hazard (n.) "risk, danger, peril." Related: Haphazardly.
a haphazard plan of action
a most haphazard system of record keeping
the Prime Minister was wearing a grey suit and a white shirt with a soft collar, but his neck had become thinner and the collar stood away from it as if it had been bought haphazard