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 Exchange에서 Random 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