Generating pseudo-random time series with specified marginal distributions