How many different seed is possible for rng()?

조회 수: 11 (최근 30일)
Mr M.
Mr M. 2018년 3월 9일
편집: Walter Roberson 2018년 3월 9일
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?

답변 (1개)

Walter Roberson
Walter Roberson 2018년 3월 9일
편집: Walter Roberson 2018년 3월 9일
"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."

카테고리

Help CenterFile Exchange에서 Random Number Generation에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by