How many different seed is possible for rng()?

7 Ansichten (letzte 30 Tage)
Mr M.
Mr M. am 9 Mär. 2018
Bearbeitet: Walter Roberson am 9 Mär. 2018
I cannot find in the description, that what is the maximum value of a seed which differs from another. And can it be zero, negative or noninteger?

Antworten (1)

Walter Roberson
Walter Roberson am 9 Mär. 2018
Bearbeitet: Walter Roberson am 9 Mär. 2018
"rng(seed) seeds the random number generator using the nonnegative integer seed [...]"
So the minimum difference is 1, and they cannot be negative, or non-integer, but they can be zero.
"Seed: Nonnegative scalar integer with which to initialize all streams. Seeds must be an integer between 0 and 2^32 − 1 or 'shuffle' to create a seed based on the current time. Default is 0."

Kategorien

Mehr zu Random Number Generation finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by