Replaced generation of random time series with stored time series because older versions of matlab do not generate random numbers with the same seeding procedure