Distributions and sampling for stochastic processes