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

5 views (last 30 days)
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.

Accepted Answer

Walter Roberson
Walter Roberson on 28 Sep 2021
Use any seed you want that is an integer between 1 and 4294967295 (inclusive)
rng seed 0 is not permitted.
  9 Comments
Walter Roberson
Walter Roberson on 5 Oct 2021
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.

Sign in to comment.

More Answers (0)

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!