Effacer les filtres
Effacer les filtres

Why is the "state" important?

2 vues (au cours des 30 derniers jours)
Mark
Mark le 18 Juil 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)

Réponse acceptée

per isakson
per isakson le 18 Juil 2012
Modifié(e) : per isakson le 18 Juil 2012

Plus de réponses (0)

Catégories

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

Community Treasure Hunt

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

Start Hunting!

Translated by