Implemented Seq.sample.