Effective perceptual and cognitive functioning in a noisy world: Computing summaries and identifying randomness