Effacer les filtres
Effacer les filtres

What is the rule for StreamIndex of Random Number Streams in worker by default

2 vues (au cours des 30 derniers jours)
Eli4ph
Eli4ph le 5 Oct 2016
I want to get reproducible random number sequence in parfor-loops and follow the example in Repeat Random Numbers in parfor-Loops. By the test
parfor i = 1:4
str{i} = RandStream.getGlobalStream;
end
I find that when the number of parfor-loops is larger than the number of workers, the StreamIndex of the random number stream used in parfor-loops is not definite and often switch from several choices.
So what is the rule for StreamIndex on worker by default and how to control it?

Réponses (0)

Catégories

En savoir plus sur Parallel for-Loops (parfor) dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by