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

2 vues (au cours des 30 derniers jours)
I need to know the properties of the random number generators used by MATLAB.

Réponse acceptée

MathWorks Support Team
MathWorks Support Team le 4 Mar 2011
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

Plus de réponses (0)

Catégories

En savoir plus sur Random Number Generation dans Help Center et File Exchange

Tags

Aucun tag saisi pour le moment.

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by