hit or miss
hit or miss also hit and miss {adv.}
In an unplanned or uncontrolled way; aimlessly; carelessly.
George didn't know which house on the street was Jane's, so he began ringing doorbells hit or miss.
Categories:
Source: A Dictionary of American Idioms