Filter löschen
Filter löschen

Why is the "state" important?

2 Ansichten (letzte 30 Tage)
Mark
Mark am 18 Jul. 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)

Akzeptierte Antwort

per isakson
per isakson am 18 Jul. 2012
Bearbeitet: per isakson am 18 Jul. 2012

Weitere Antworten (0)

Kategorien

Mehr zu Random Number Generation finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by