Extreme Value Statistics and Error Correcting Codes