Add sample method to RichPipe
Add return types to limit and sample
Merge pull request #327 from willf/develop

Add sample method to RichPipe