Sampling the social environment in an uncertain world