Hi. Is 12345 the only seed to generate weibull random numbers with the function wblrnd?

1 回表示 (過去 30 日間)
When using Entity generation block in simulink, the default seed is 12345, provided for intergeneration time action (by MATLAB ACTION) for random number with weibull or exponential distribution.
Why 12345 instead of a seed 0 or 1? What justifies this choice in simulink? Is-it possible to use others seeds with weibull distribution for different replications in simulink? Thanks a lot.

採用された回答

Walter Roberson
Walter Roberson 2021 年 9 月 28 日
Use any seed you want that is an integer between 1 and 4294967295 (inclusive)
rng seed 0 is not permitted.
  9 件のコメント
Guy YAKANA
Guy YAKANA 2021 年 10 月 5 日
Is the number of replications equal to the number of seeds for simulation?
Walter Roberson
Walter Roberson 2021 年 10 月 5 日
No. That is why I multiplied out the 27*4 = 108 -- 27 table entries, 4 replications = 108 total cases that they explicitly state. sometimes when people talk about "4 replications" they mean "1 original and 4 more as well", and if that were the case then the total would be divisible by 5. But 108 is not divisible by 5, so 4 is the total number not "1 and 4 more".
So I do not currently understand why they talk about 5 random number generators.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSources についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by