About man and freedom

In The Antichrist Nietzsche argues that man should be considered no otherwise than as a machine. Even if some generic chaos (randomness) is added to the picture, it doesn't affect this. A chance is innocent.
Nietzsche points out the weakness of human as well as of God. Man wills the good, "God" wills the good, and yet evil happens. So where is this "freedom" (i.e. power) of will? And where is this good God?