Information Sampling and Adaptive Cognition