drew his bow at random
He took aim to shoot a soldier without knowing that it was Ahab or he drew his bow without any specific target in mind.
between the joints of his armor
This is where two pieces of armor meet and is susceptible to arrows and swords.