Sample a stream