In which Matlab version was rng() introduced?

1 次查看(过去 30 天)
The old syntax to set the seed of a random number generator like
randn('state',1)
is discouraged. Instead, it is recommended to use
rng(1);
However, as far as I know, older versions of Matlab did not yet have that functionality. But in contrast to other functions, the documentation https://mathworks.com/help/matlab/ref/rng.html does not mention in which version the current functionality was introduced.

采纳的回答

Adam
Adam 2020-1-31

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Random Number Generation 的更多信息

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by