フィルターのクリア

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

2 ビュー (過去 30 日間)
Eli4ph
Eli4ph 2016 年 10 月 5 日
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?

回答 (0 件)

カテゴリ

Help Center および File ExchangeParallel for-Loops (parfor) についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by