Azzera filtri
Azzera filtri

Why is the "state" important?

2 visualizzazioni (ultimi 30 giorni)
Mark
Mark il 18 Lug 2012
I am going through a code which uses 'state' in a line. What does 'state' do, and could it be of importance? I read that it "resets the generator to its 100th state", but what does this mean?
rand('state',100)

Risposta accettata

per isakson
per isakson il 18 Lug 2012
Modificato: per isakson il 18 Lug 2012

Più risposte (0)

Categorie

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