Add sample method to RichPipe

I added a 'sample' method based on the analogous 'limit' method. I didn't see any tests on limit, so I didn't add any for sample. I did, however, make a local run using sample, and it worked fine, and seems like a useful addition.