shot in the dark
shot in the dark {n. phr.}
An attempt without much hope or chance of succeeding; a wild guess.
A was just a shot in the dark, but I got the right answer to the teacher's question.
Categories:
Source: A Dictionary of American Idioms