Docstring for stochastic.sample()