You target three permanents as you cast Wild Swing. You don’t randomly choose which one will be destroyed until Wild Swing resolves. If one of those permanents has become an illegal target by then, you randomly choose between the other two. If two of those permanents have become illegal targets by then, there is no random choice — the remaining permanent is destroyed.