random number generation: MATLAB vs Fortran
Mostra commenti meno recenti
Hi,
I am a MATLAB user.
I am curious about the difference of random number generation in MATLAB and Fortran.
I know from Help file that MATLAB use "Mersenne twister" as the generator with an approximate period,2^19936-1.
I have no idea about Fortran. Do both use the same best random number generator?
1 Commento
Peter Perkins
il 17 Ago 2012
MATLAB has several choices of generator. The Mersenne Twister (mt19937ar, to be specific) is the default that MATLAB sets up at start-up, but you are free to choose any of the others at any time. See the documentation for the RNG function.
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Fortran with MATLAB in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!