Which generator is used in rand function?

I used rand function to generate random numbers from Uniform distribution and from some specific distributions. I've read that Lagged Fibonacci Generator is used in rand function but I couldn't find any official MATLAB document that approves it. Can you tell me if that's a case? If not, which generator is used?

 採用された回答

the cyclist
the cyclist 2016 年 11 月 19 日
編集済み: the cyclist 2016 年 11 月 19 日

2 投票

Here is the documentation page that describes the available generators. (See in particular the "Choosing a random number generator" section.) The default for rand mt19937ar, a Mersenne twister algorithm. That is also mentioned in the specific documentation for the rng function, which sets the generator seed.

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeRandom Number Generation についてさらに検索

質問済み:

2016 年 11 月 19 日

編集済み:

2016 年 11 月 19 日

Community Treasure Hunt

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

Start Hunting!

Translated by