Add seed to sample method on RichPipe

should solve #328