Two men have been taken into custody over four random highway shootings and the death of a man on the New South Wales mid-north coast.