--- from: http://rosettacode.org/wiki/Verify_distribution_uniformity/Chi-squared_test note: Probability and statistics