Azzera filtri
Azzera filtri

Random Stream and mt19937ar with seed

28 visualizzazioni (ultimi 30 giorni)
DM il 27 Apr 2015
Risposto: Daylon Hester il 11 Ago 2021
The following object is built in by MATLAB
comm.AWGNChannel('NoiseMethod', 'Signal to noise ratio (SNR)',...
'SNR', snrdB, 'RandomStream', 'mt19937ar with seed', 'Seed', 67);
I am wondering what is the use of
'RandomStream', 'mt19937ar with seed', 'Seed', 67
I have seen this expression being used in many objects other than

Risposta accettata

Sebastian Castro
Sebastian Castro il 27 Apr 2015
It's a way of generating random numbers. Look at the first example below:
Also, to see some other types you can refer to this:
- Sebastian

Più risposte (1)

Daylon Hester
Daylon Hester il 11 Ago 2021
The argument following 'RandomStream' is the specific random number generator algorithm used. The default is called Mersenne Twister, but it is selected with 'mt19937ar'.
The seed number allows you to repeat the same number stream.


Scopri di più su Random Number Generation in Help Center e File Exchange


Community Treasure Hunt

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

Start Hunting!

Translated by