On the Distribution of Parity in the Partition Function