Some theory of sampling