"Gideon" <email@example.com> wrote in message news:firstname.lastname@example.org... > Thanks Patrick.
Peter is the one to whom you responded.
> It sounds like I am in the "easy" case. The code I have is of the > following form: > > data = zeros(N,1); > > parfor k = 1:N > > xi = randn(M,1); > data(k) = f(xi); > > end > > In other words, I want N realizations of a certain function f which > depends on having M i.i.d. Gaussian random variables. So all I want here > is to ensure that each worker is getting an independent stream of random > numbers when it goes on to use randn.
You might find this section of the documentation interesting and/or reassuring.