Those caveats apply to machines as well: if I tell a toaster to kill someone, and then the toaster electrocutes them, I would not be guilty.
Do you think there is an argument that I should not be responsible?
If “random” is too independent, or you want it to be systematic, we could do something else:
* the person with the highest “red hat” score according to a 20 year old copy of opencv
Or we could do something modern and “AI” and give it a completely random neural net that’s super deep and has three outputs: angle, pitch, and whether to pull the trigger.
Or we could go all out and just replace this hypothetical machine that acts like an independent person with the next best thing: a regular human.
If a government, or a terrorist group, gives a group of people (or soldiers) a bunch of weapons and drops them off in a city, and they start shooting, do you think that the government would be responsible?
This discussion mistakes existing policies as some objective base, but it’s the other way round.