What random number generators are used by various version of MATLAB up to MATLAB 7.5 (R2007b)?

조회 수: 2 (최근 30일)

채택된 답변

MathWorks Support Team
MathWorks Support Team 2011년 3월 4일
Throughout time MATLAB has used several different random number generators. Users should typically consider using the default generator, since it is optimal in a number of considerations, unless there is a compelling reason to use another generator.
The uniform random number generator can generate numbers according to the following algorithms:
1. Mersenne Twister algorithm by Nishimura and Matsumoto (the default in MATLAB 7.4 and later)
2. Modified version of Marsaglia's subtract with borrow algorithm (the default in MATLAB 5 through MATLAB 7.3)
3. Multiplicative congruential algorithm (the default in MATLAB 4)
To read more about these algorithms, consult the references mentioned in the documentation. This documentation can be opened from the MATLAB Command Prompt by entering:
doc rand
The normal random number generator can generate numbers according to the following algorithms:
1. Marsaglia's ziggurat algorithm (default in MATLAB 5 and later)
2. Polar algorithm (the default in MATLAB 4)
To read more about these algorithms, consult the references mentioned in the documentation. This documentation can be opened from the MATLAB command prompt by entering
doc randn

추가 답변 (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